AES-GCM-SIV
Nonce-misuse-resistant AES mode using POLYVAL and synthetic IVs (RFC 8452)
Overview
AES-GCM-SIV is a nonce-misuse-resistant AEAD that derives per-nonce keys, authenticates with the POLYVAL hash and uses the resulting tag as the counter-mode IV. If a nonce is repeated, the only leak is whether two messages with the same nonce and associated data were identical.
The mode follows the synthetic-IV approach: it first computes an authenticator over the associated data and plaintext, then uses that value as the starting counter for encryption. For each nonce it derives a fresh message-authentication key and encryption key from the master key with AES, which improves the security bounds compared with SIV designs that use a fixed key.
POLYVAL is a little-endian relative of GHASH and runs efficiently with carry-less multiplication instructions, so AES-GCM-SIV reaches speeds close to AES-GCM for encryption. Decryption is slightly cheaper than encryption, and encryption is necessarily two-pass. NextSSL provides the AES-128 and AES-256 instances specified in RFC 8452.
History
2017–2018AES-GCM-SIV published by Shay Gueron, Adam Langley, Yehuda Lindell
Specified in RFC 8452
How it works
- Derive a per-nonce authentication key and encryption key by encrypting nonce-dependent blocks under the master key.
- Compute POLYVAL over the padded associated data, the plaintext and a length block.
- XOR the nonce into the hash output, clear the top bit and encrypt it with AES to obtain the tag.
- Use the tag (with its top bit set) as the initial counter block and encrypt the plaintext in counter mode.
Security notes
Nonce reuse does not break confidentiality or integrity beyond revealing equality of repeated (nonce, associated data, plaintext) tuples. Nonces should still be unique where possible, as the strongest bounds assume it.
Typical uses
Variants in NextSSL
2| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| AES-128-GCM-SIV aes-128-gcm-siv |
standard | key 16 · nonce 12 · tag 16 | RFC 8452 | safe |
| AES-256-GCM-SIV aes-256-gcm-siv |
standard | key 32 · nonce 12 · tag 16 | RFC 8452 | safe |
Frequently asked questions
Which AES-GCM-SIV variants does NextSSL include?
NextSSL registers 2 AES-GCM-SIV variants: aes-128-gcm-siv, aes-256-gcm-siv.
Families with similar names
Other authenticated encryption
All 392Related
Counter-mode AES with a GHASH polynomial MAC; the default AEAD of TLS and IPsec
AES-SIVDeterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher
GHASHThe GF(2^128) polynomial hash at the core of AES-GCM and GMAC