AES-SIV
Deterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)
Overview
AES-SIV is a deterministic authenticated-encryption mode that computes a synthetic IV with the S2V construction over CMAC and uses it both as the tag and as the counter-mode IV. It provides key wrapping and misuse resistance without requiring a nonce.
SIV, introduced by Rogaway and Shrimpton, formalised deterministic authenticated encryption: the same key and inputs always yield the same ciphertext, and the scheme reveals nothing beyond that equality. AES-SIV instantiates the PRF with S2V, a vector-input extension of AES-CMAC, and encrypts with AES-CTR keyed independently.
Because it accepts a vector of associated-data strings, AES-SIV can treat a nonce as just another header component, turning it into a nonce-misuse-resistant scheme. NextSSL ships the RFC 5297 instances AES-SIV-CMAC-256 and AES-SIV-CMAC-512, whose key sizes are double the AES key size because two keys are used.
History
2006–2008AES-SIV published by Phillip Rogaway, Thomas Shrimpton
Specified in RFC 5297
How it works
- Split the key into a CMAC key and a CTR key.
- Compute S2V: chain CMAC values of each associated-data component with doubling in GF(2^128), then fold in the plaintext.
- Output the 128-bit S2V result as the synthetic IV and tag.
- Clear two bits of the IV and use it as the initial counter to encrypt the plaintext with AES-CTR.
Security notes
Without a nonce, identical messages produce identical ciphertexts, which leaks equality; include a nonce or unique header when that matters. With a repeated nonce it degrades gracefully to deterministic encryption. Encryption is two-pass and cannot be streamed.
Typical uses
Variants in NextSSL
2| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| AES-SIV-CMAC-256 aes-siv-cmac-256 |
standard | key 32 · nonce 0 · tag 16 | RFC 5297 | safe |
| AES-SIV-CMAC-512 aes-siv-cmac-512 |
standard | key 64 · nonce 0 · tag 16 | RFC 5297 | safe |
Frequently asked questions
Which AES-SIV variants does NextSSL include?
NextSSL registers 2 AES-SIV variants: aes-siv-cmac-256, aes-siv-cmac-512.