Authenticated encryption

Simple128speck

Block-cipher-agnostic AEAD instantiated with AES, GIFT, PRESENT and SPECK

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Simple128speck

Simple128speck is an authenticated encryption (AEAD) scheme from the SIMPLE family. It uses a 16-byte (128-bit) key, a 15-byte nonce and a 16-byte (128-bit) authentication tag. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

SIMPLE is a block-cipher-based authenticated-encryption mode that NextSSL includes in six instantiations covering 64-bit and 128-bit block ciphers.

The identifiers give the block size and cipher: simple128aes10 uses 10-round AES-128, simple128gift uses GIFT-128 and simple128speck uses SPECK-128; simple64gift, simple64present and simple64speck use 64-bit ciphers. The 128-bit instances use 120-bit nonces and 128-bit tags, and the 64-bit instances use 56-bit nonces and 64-bit tags.

Little public analysis of the mode is available. Using the same mode across ciphers makes the family useful for comparing block ciphers under identical conditions.

Security notes

Requires unique nonces. The 64-bit instances have small birthday bounds and 64-bit tags. Treat as research-only.

Typical uses

Comparing one mode across several block ciphersArchival reference

Sizes

FieldBytesMeaning
key16Secret key
nonce15Nonce / IV
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(15)
ct = root.call("aead_seal", "simple128speck", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "simple128speck", None, key, nonce, b"header", ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Simple128speck?

Simple128speck is an AEAD in the SIMPLE family. SIMPLE is a block-cipher-based authenticated-encryption mode that NextSSL includes in six instantiations covering 64-bit and 128-bit block ciphers.

What are the Simple128speck sizes?

In NextSSL, Simple128speck uses: key 16 bytes, nonce 15 bytes, tag 16 bytes.

Is Simple128speck safe to use?

Simple128speck is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).