Simple128aes10
Block-cipher-agnostic AEAD instantiated with AES, GIFT, PRESENT and SPECK
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 Simple128aes10
Simple128aes10 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 15 | Nonce / IV |
| tag | 16 | Authentication 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", "simple128aes10", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "simple128aes10", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("simple128aes10", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("simple128aes10", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Any, "simple128aes10", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Simple128aes10?
Simple128aes10 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 Simple128aes10 sizes?
In NextSSL, Simple128aes10 uses: key 16 bytes, nonce 15 bytes, tag 16 bytes.
Is Simple128aes10 safe to use?
Simple128aes10 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).