AEAD family

AES-GCM-SIV

Nonce-misuse-resistant AES mode using POLYVAL and synthetic IVs (RFC 8452)

standard 2 variants 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–2018
  1. AES-GCM-SIV published by Shay Gueron, Adam Langley, Yehuda Lindell

  2. Specified in RFC 8452

How it works

  1. Derive a per-nonce authentication key and encryption key by encrypting nonce-dependent blocks under the master key.
  2. Compute POLYVAL over the padded associated data, the plaintext and a length block.
  3. XOR the nonce into the hash output, clear the top bit and encrypt it with AES to obtain the tag.
  4. 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

Systems where nonce uniqueness is hard to guarantee, such as distributed or stateless encryptorsEncrypting keys, tokens and small recordsDefence in depth alongside random 96-bit nonces

Variants in NextSSL

2
AlgorithmTierSizes (bytes)StandardsAPI
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.