Authenticated encryption

AES-SIV-CMAC-512

Deterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)

standard Safe API

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–2008
  1. AES-SIV published by Phillip Rogaway, Thomas Shrimpton

  2. Specified in RFC 5297

How it works

  1. Split the key into a CMAC key and a CTR key.
  2. Compute S2V: chain CMAC values of each associated-data component with doubling in GF(2^128), then fold in the plaintext.
  3. Output the 128-bit S2V result as the synthetic IV and tag.
  4. 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

Key wrapping and encryption of secrets at restDeterministic encryption for deduplication or lookupProtocols where nonce uniqueness cannot be assured

Sizes

FieldBytesMeaning
key64Secret key
nonce0Nonce / IV
tag16Authentication 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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other AES-SIV variants

1

Frequently 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.