Grain-128AEAD
A stream-cipher-based AEAD from the Grain family, with a 96-bit IV and 64-bit tag
Overview
Grain-128AEAD is an authenticated encryption design from the Grain stream cipher family, using a 16-byte key, a 12-byte nonce and an 8-byte tag. It was submitted to the NIST Lightweight Cryptography process. NextSSL carries the second version as an unverified variant.
Grain-128AEAD extends the Grain stream cipher family with message authentication. Its state combines a linear and a nonlinear feedback shift register with an accumulator that produces the tag, so the same compact hardware structure that makes Grain attractive also generates authentication.
NextSSL carries the variant grain128aeadv2 with a 16-byte key, a 12-byte nonce and an 8-byte tag. The 8-byte tag gives roughly 64-bit forgery resistance, which is short for general use. The design was aimed at very constrained hardware, and the archive records it as unverified.
Its design is closely related to the Grain-128 stream cipher, which is also in the archive under the grain entry, so cryptanalysis of the base cipher is relevant background for this variant.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectGrain-128AEAD published by Martin Hell, Thomas Johansson, Alexander Maximov, Willi Meier
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
How it works
- The 16-byte key and 12-byte nonce load the two shift registers.
- A warm-up phase mixes the state before any output is used.
- Plaintext is encrypted by XOR with keystream while the authentication part updates an accumulator, producing the 8-byte tag.
Security notes
Unverified in NextSSL. Designs in the Grain family have a published cryptanalysis history, so the unverified tier is a reason for caution. The 8-byte tag limits forgery resistance.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Grain128aeadv2 grain128aeadv2 |
unverified | key 16 · nonce 12 · tag 8 | — | root |
Frequently asked questions
What is Grain-128AEAD?
Grain-128AEAD is a stream-cipher-based AEAD from the Grain family, submitted to NIST's lightweight cryptography process and carried by NextSSL as unverified.
Is Grain-128AEAD secure and post-quantum?
It is not recommended for production given its unverified status and 8-byte tag. Its 128-bit key gives about 64-bit strength against Grover's quantum key search.
What key and nonce sizes does Grain-128AEAD use?
It uses a 16-byte key, a 12-byte nonce and an 8-byte tag.
Which Grain-128AEAD variants does NextSSL include?
NextSSL registers 1 Grain-128AEAD variant: grain128aeadv2.
Other authenticated encryption
All 392Related
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
ChaCha20-Poly1305ARX stream cipher with a one-time Poly1305 MAC; fast and constant-time in software
Grain-128AEADLFSR/NLFSR stream cipher with an integrated MAC; NIST LWC finalist
KNOT-128A 128-bit permutation-based AEAD from the KNOT family, submitted to NIST lightweight cryptography
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD