AES-SIV-CMAC-512
Deterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)
About AES-SIV-CMAC-512
AES-SIV-CMAC-512 is one of 2 AES-SIV variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 64-byte (512-bit) key and a 16-byte (128-bit) authentication tag. Its registry entry cites RFC 5297. It is also known as aes-256-siv. NextSSL lists it in the standard tier and exposes it through the safe API.
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 64 | Secret key |
| nonce | 0 | Nonce / IV |
| tag | 16 | Authentication tag |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
key, nonce = ns.random(64), ns.random(0)
ct = ns.call("aead_seal", "aes-siv-cmac-512", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = ns.call("aead_open", "aes-siv-cmac-512", None, key, nonce, b"header", ct)[0]
nextssl_aead_seal("aes-siv-cmac-512", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_aead_open("aes-siv-cmac-512", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Safe, "aes-siv-cmac-512", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other AES-SIV variants
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is AES-SIV-CMAC-512?
AES-SIV-CMAC-512 is an AEAD in the AES-SIV family. 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 is also known as aes-256-siv.
What are the AES-SIV-CMAC-512 sizes?
In NextSSL, AES-SIV-CMAC-512 uses: key 64 bytes, nonce 0 bytes, tag 16 bytes.
Who designed AES-SIV-CMAC-512 and when?
AES-SIV-CMAC-512 belongs to the AES-SIV family, first published in 2006 by Phillip Rogaway, Thomas Shrimpton. Its origin: RFC 5297.
Which standards define AES-SIV-CMAC-512?
AES-SIV-CMAC-512 is referenced by RFC 5297.
Is AES-SIV-CMAC-512 safe to use?
AES-SIV-CMAC-512 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other AES-SIV variants are there?
NextSSL also registers aes-siv-cmac-256 in the AES-SIV family.