K031 / Cipher modes and AEAD
AES-GCM-SIV
AES-GCM-SIV is an AEAD scheme resistant to nonce misuse.
CRYPTOGRAPHY LAB / K031
Cryptography Lab · AES-GCM-SIV
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
AES-GCM-SIV (RFC 8452, empty AAD)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- AES-GCM-SIV is an AEAD scheme resistant to nonce misuse. Source document ↗
- Classification and reversibility
- Symmetric AEAD supporting encryption and decryption under normal conditions. Source document ↗
- Key or secret requirements
- Requires a secret master key (KGK); each call derives authentication and encryption keys from nonce and KGK. Source document ↗
- Operating principle and structure
- Deterministic-IV AEAD combining AES-CTR and the POLYVAL universal hash. Source document ↗
- Key size, block size and parameters
- 96-bit nonce, AES-sized key and tag up to 128 bits. Source document ↗
- Security strength and recommendation
- Nonce-misuse resistant but not NIST/FIPS approved. Source document ↗
- Known attacks and vulnerabilities
- Repeated nonce and identical message can reveal equality. Source document ↗
- Standards and certification
- Specified in RFC 8452 (IRTF/CFRG, Informational). Source document ↗
- Typical uses
- Suitable for general symmetric encryption and AEAD. Source document ↗
- Implementations, libraries and tools
- Public implementations include ones based on Go standard libraries. Source document ↗
- Decryption or decoding
- Implementations initialize an AEAD decryption object with the key. Source document ↗
- Advantages
- Reduces catastrophic nonce-reuse risk of AES-GCM and improves security bounds. Source document ↗
- Limitations and cautions
- Not confirmed in the survey
- Distinguishing encryption, encoding and hashing
- Keyed AEAD, not encoding or hashing. Source document ↗
Practical examples
Example
Encrypt plaintext/AAD with unique nonce and secret key to obtain ciphertext/tag. Decrypt with same key, nonce, AAD and tag; discard if verification fails. Encoding is representation conversion.
Procedure
Prepare key, nonce and AAD, supply plaintext to AEAD encryption API and store ciphertext/tag. Decrypt with identical parameters and release no output if authentication fails. Base64 is a separate encoding step.
Scenario
Use for message storage/transmission where nonce mistakes can be catastrophic. Aim to limit leakage on reuse to message equality; still use unique nonces, tag verification and key management.
Pitfalls and alternatives
Do not treat misuse resistance as universal protection; prefer unique nonces. Invalid/tampered parameters cause decryption failure. Use vetted libraries and RFC 8452 AES-128/256; for NIST/FIPS requirements evaluate approved modes and stronger nonce management separately.
References
- Webpage for the AES-GCM-SIV Mode of Operation - Yehuda Lindell ↗
- README.md ↗
- aes_reference - xero/leviathan-crypto GitHub Wiki ↗
- gcm_siv.rs - source ↗
- Optimizing authenticated encryption algorithms ↗
- gcm_siv.rs - source ↗
- Untitled result ↗
- aes_gcm_siv - Rust ↗
- fernandezvara/aesgcmsiv ↗
- crypto.rs - source ↗
- sb_aes_gcm_siv - Rust ↗