AEGIS-256
Very fast AES-round-based AEAD from the CAESAR high-performance portfolio
About AEGIS-256
AEGIS-256 is one of 2 AEGIS variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 32-byte (256-bit) key, a 32-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites draft-irtf-cfrg-aegis-aead. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
AEGIS is a family of authenticated ciphers that update a large state with the AES round function, absorbing message blocks directly into the state. AEGIS-128L and AEGIS-256 are being standardised by the IRTF CFRG.
Each AEGIS step applies one AES round to every state word in parallel and XORs in message blocks, so a single message block costs well under one full AES encryption. On processors with AES instructions, AEGIS-128L reaches throughput substantially higher than AES-GCM. AEGIS-128 was selected for the CAESAR final portfolio in the high-performance category; AEGIS-128L uses a 1024-bit state and 256-bit rate, and AEGIS-256 uses a 256-bit key and nonce.
The CFRG draft defines AEGIS-128L, AEGIS-256 and parallel X variants with 128-bit or 256-bit tags. NextSSL implements AEGIS-128L and AEGIS-256. The large nonces make random generation practical, particularly for AEGIS-256.
History
2013–2019AEGIS published by Hongjun Wu, Bart Preneel
CAESAR competition for authenticated encryption announced
CAESAR competition57 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
- Initialise the state from the key, nonce and fixed constants, then run several update rounds.
- Absorb associated data blocks by XORing them into the state during AES-round updates.
- Encrypt each plaintext block by XOR with a keystream derived from state words, then absorb the plaintext.
- Absorb the lengths, run finalisation rounds and output the tag from the state.
Security notes
AEGIS is not nonce-misuse resistant: a repeated nonce leaks plaintext information and can allow state recovery and forgeries. Use unique nonces; AEGIS-256 allows random nonces. Releasing unverified plaintext must be avoided.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| nonce | 32 | Nonce / IV |
| tag | 16 | Authentication tag |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
key, nonce = ns.random(32), ns.random(32)
ct = ns.call("aead_seal", "aegis256", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = ns.call("aead_open", "aegis256", None, key, nonce, b"header", ct)[0]
nextssl_aead_seal("aegis256", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_aead_open("aegis256", 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::Safe, "aegis256", &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.
Other AEGIS variants
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is AEGIS-256?
AEGIS-256 is an AEAD in the AEGIS family. AEGIS is a family of authenticated ciphers that update a large state with the AES round function, absorbing message blocks directly into the state.
What are the AEGIS-256 sizes?
In NextSSL, AEGIS-256 uses: key 32 bytes, nonce 32 bytes, tag 16 bytes.
Who designed AEGIS-256 and when?
AEGIS-256 belongs to the AEGIS family, first published in 2013 by Hongjun Wu, Bart Preneel. Its origin: CAESAR final portfolio (high performance); draft-irtf-cfrg-aegis-aead.
Which standards define AEGIS-256?
AEGIS-256 is referenced by draft-irtf-cfrg-aegis-aead.
Is AEGIS-256 safe to use?
AEGIS-256 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other AEGIS variants are there?
NextSSL also registers aegis128l in the AEGIS family.
Related families
Counter-mode AES with a GHASH polynomial MAC; the default AEAD of TLS and IPsec
ChaCha20-Poly1305ARX stream cipher with a one-time Poly1305 MAC; fast and constant-time in software
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher
ChaChaBernstein's ARX stream cipher; ChaCha20 secures much of today's TLS, SSH and VPN traffic