Grain-128AEAD
LFSR/NLFSR stream cipher with an integrated MAC; NIST LWC finalist
Overview
Grain-128AEAD is an authenticated stream cipher from the Grain family, combining a 128-bit LFSR and 128-bit NLFSR keystream generator with an accumulator-based MAC. It was a finalist in the NIST Lightweight Cryptography process.
The keystream generator produces two interleaved streams: even bits encrypt the plaintext and odd bits feed a shift-register-and-accumulator MAC that authenticates the data. This lets hardware implementations reach very small area while processing one or more bits per clock.
NextSSL includes the round 2 (v1) version with a 128-bit key, 96-bit nonce and 64-bit tag. A revised specification, Grain-128AEADv2, was published for the final round. The Grain family began with the eSTREAM portfolio cipher Grain v1, and Grain-128a added optional authentication before Grain-128AEAD was submitted to NIST.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectGrain-128AEAD published
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon published in NIST SP 800-232
NIST Lightweight Cryptography project
Security notes
Nonce reuse leaks plaintext and allows key-stream and state recovery. The 64-bit tag gives limited forgery resistance per attempt.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Grain-128aead grain-128aead |
research | key 16 · nonce 12 · tag 8 | Grain-128AEAD round-2 (v1) (NIST LWC) | root |
Frequently asked questions
Which Grain-128AEAD variants does NextSSL include?
NextSSL registers 1 Grain-128AEAD variant: grain-128aead.