Aes128poetv2aes4ni
Pipelineable online encryption with tag; a CAESAR misuse-resistant design
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 Aes128poetv2aes4ni
Aes128poetv2aes4ni is an authenticated encryption (AEAD) scheme from the POET family. It uses a 16-byte (128-bit) key, a 16-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
POET is an online authenticated cipher that wraps an AES encryption between two chained hash layers, aiming for security under nonce reuse up to common-prefix leakage. It was a CAESAR round 2 candidate.
Each block is processed as: XOR with a running top chaining value, multiply or hash into that chain, encrypt with AES, then pass through a second, bottom chaining layer. The two chains make the mode online and pipelineable while giving every ciphertext block dependence on all earlier plaintext.
Cryptanalysis during the competition targeted the universal hash layers, and version 2 changed them to use AES-based functions. NextSSL includes two version 2 builds: aes128 uses full ten-round AES in the hash layers, and aes4 uses four-round AES, which is faster but has a smaller security margin. The ni suffix indicates AES-NI implementations.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionPOET 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
Security notes
Misuse resistance is limited to the online notion and the birthday bound. Earlier POET hash instantiations were broken, and the reduced-round variant should be treated with caution.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | 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(16)
ct = root.call("aead_seal", "aes128poetv2aes4ni", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "aes128poetv2aes4ni", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("aes128poetv2aes4ni", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("aes128poetv2aes4ni", 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, "aes128poetv2aes4ni", &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 Aes128poetv2aes4ni?
Aes128poetv2aes4ni is an AEAD in the POET family. POET is an online authenticated cipher that wraps an AES encryption between two chained hash layers, aiming for security under nonce reuse up to common-prefix leakage.
What are the Aes128poetv2aes4ni sizes?
In NextSSL, Aes128poetv2aes4ni uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Aes128poetv2aes4ni and when?
Aes128poetv2aes4ni belongs to the POET family, first published in 2014 by Farzaneh Abed, Scott Fluhrer, Christian Forler, Eik List, Stefan Lucks, David McGrew, Jakob Wenzel. Its origin: CAESAR round 2 candidate.
Is Aes128poetv2aes4ni safe to use?
Aes128poetv2aes4ni 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).