Aes128n8t8silcv2
Compact CFB-based AEAD modes for small block ciphers; CAESAR round 3
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 Aes128n8t8silcv2
Aes128n8t8silcv2 is an authenticated encryption (AEAD) scheme from the CLOC and SILC family. It uses a 16-byte (128-bit) key, an 8-byte nonce and an 8-byte (64-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
CLOC (Compact Low-Overhead CFB) and SILC (SImple Lightweight CFB) are nonce-based authenticated-encryption modes that use only the forward direction of a block cipher and keep the state to roughly one block. Both reached the third round of CAESAR.
CLOC encrypts with a CFB-style chain and authenticates with a CBC-MAC-like pass over the associated data and ciphertext; tweak functions applied to the chaining value provide domain separation without extra block-cipher calls. SILC simplifies CLOC further for hardware by removing some of these tweak functions, reducing the circuit at a small cost in software efficiency.
The CAESAR submissions defined instances with AES-128 and with 64-bit block ciphers. The NextSSL identifiers encode the parameters: the cipher (AES-128, PRESENT-80, LED-80 or TWINE-80), the nonce length in bytes (n12, n8, n6) and, where present, the tag length (t8, t4). The generic cloc and silc entries are reference builds of the same modes.
Instances using 64-bit block ciphers have a correspondingly small birthday bound, so the amount of data per key must be kept low. The t-suffixed version 2 and 3 builds fix the tag length explicitly, while the version 1 builds use the default parameters of each instance.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionCLOC and SILC published
57 first-round candidates published
CAESAR competitionSecond round announced
CAESAR competitionThird round announced
CAESAR competitionFinalists announced
CAESAR competitionFinal portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB
CAESAR competition
How it works
- Derive an initial value from the key, nonce and associated data using block-cipher calls.
- Encrypt plaintext in CFB fashion: each ciphertext block is the plaintext XOR the encryption of the previous chaining value.
- Authenticate the ciphertext in a CBC-MAC-like chain seeded from the nonce.
- Output the truncated final MAC state as the tag.
Security notes
Both modes require unique nonces and are serial in encryption. Instances on 64-bit block ciphers reach only birthday-bound security around 2^32 blocks, and short tags (t4, t8) allow online forgery with corresponding probability.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 8 | Nonce / IV |
| tag | 8 | 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(8)
ct = root.call("aead_seal", "aes128n8t8silcv2", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "aes128n8t8silcv2", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("aes128n8t8silcv2", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("aes128n8t8silcv2", 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, "aes128n8t8silcv2", &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 Aes128n8t8silcv2?
Aes128n8t8silcv2 is an AEAD in the CLOC and SILC family. CLOC (Compact Low-Overhead CFB) and SILC (SImple Lightweight CFB) are nonce-based authenticated-encryption modes that use only the forward direction of a block cipher and keep the state to roughly one block.
What are the Aes128n8t8silcv2 sizes?
In NextSSL, Aes128n8t8silcv2 uses: key 16 bytes, nonce 8 bytes, tag 8 bytes.
Who designed Aes128n8t8silcv2 and when?
Aes128n8t8silcv2 belongs to the CLOC and SILC family, first published in 2014 by Tetsu Iwata, Kazuhiko Minematsu, Jian Guo, Sumio Morioka (CLOC); with Eita Kobayashi (SILC). Its origin: CAESAR round 3 candidates.
Is Aes128n8t8silcv2 safe to use?
Aes128n8t8silcv2 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).