Aes256otrpv3
Inverse-free, parallel AES mode using a two-round Feistel per block pair
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 Aes256otrpv3
Aes256otrpv3 is an authenticated encryption (AEAD) scheme from the AES-OTR family. It uses a 32-byte (256-bit) key, a 12-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
AES-OTR (Offset Two-Round) is a nonce-based authenticated-encryption mode that processes pairs of blocks with a two-round Feistel network built from AES, so decryption needs only AES encryption. It reached the third round of CAESAR.
OTR is closely related to OCB in efficiency: it makes about one block-cipher call per block and is parallelisable, but it avoids the block-cipher inverse by using the Feistel structure. Offsets derived from the nonce through doubling in GF(2^128) mask each call, and the checksum of plaintext blocks feeds the tag.
The specification allows associated data to be processed either in parallel or in a serial, CBC-MAC-like fashion; the p and s identifiers in NextSSL denote these options, and c identifies a further implementation build of the same version 3 specification. Instances exist for AES-128 and AES-256 keys.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionAES-OTR published by Kazuhiko Minematsu
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
OTR requires unique nonces; repeating one leaks information about plaintext pairs and can enable forgeries. Security is bounded by the birthday bound of the 128-bit block.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| nonce | 12 | 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(32), root.random(12)
ct = root.call("aead_seal", "aes256otrpv3", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "aes256otrpv3", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("aes256otrpv3", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("aes256otrpv3", 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, "aes256otrpv3", &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 Aes256otrpv3?
Aes256otrpv3 is an AEAD in the AES-OTR family. AES-OTR (Offset Two-Round) is a nonce-based authenticated-encryption mode that processes pairs of blocks with a two-round Feistel network built from AES, so decryption needs only AES encryption.
What are the Aes256otrpv3 sizes?
In NextSSL, Aes256otrpv3 uses: key 32 bytes, nonce 12 bytes, tag 16 bytes.
Who designed Aes256otrpv3 and when?
Aes256otrpv3 belongs to the AES-OTR family, first published in 2014 by Kazuhiko Minematsu. Its origin: CAESAR round 3 candidate.
Is Aes256otrpv3 safe to use?
Aes256otrpv3 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).