AEAD family

AES-EAX

Two-pass AEAD combining AES-CTR with OMAC (CMAC) authentication

standard 3 variants Published at FSE 2004

Overview

EAX authenticates the nonce, associated data and ciphertext with three domain-separated OMAC computations and encrypts with AES in counter mode. It was proposed as a cleaner, provably secure alternative to CCM.

EAX uses one key for both encryption and authentication. The nonce is first processed by OMAC to produce the initial counter, the plaintext is encrypted in counter mode, and the tag is the XOR of three OMAC values over the nonce, the associated data and the ciphertext, each tweaked with a distinct prefix. Unlike CCM it accepts arbitrary-length nonces and does not need the message length in advance, and associated data can be preprocessed.

EAX has a straightforward security proof in the standard model and has been used in some embedded protocols, notably ANSI C12.22 smart metering. NextSSL provides AES-128, AES-192 and AES-256 instances.

History

2004–2004
  1. AES-EAX published by Mihir Bellare, Phillip Rogaway, David Wagner

How it works

  1. Compute N = OMAC_K(0 || nonce) and use it as the initial counter.
  2. Encrypt the plaintext with AES-CTR starting at N.
  3. Compute H = OMAC_K(1 || associated data) and C' = OMAC_K(2 || ciphertext).
  4. Output the tag as N XOR H XOR C', truncated to the desired length.

Security notes

Security relies on unique nonces; repeating a nonce exposes plaintext XORs. EAX is two-pass and slower than GCM or OCB in software, but has no known structural weaknesses under its stated assumptions.

Typical uses

Embedded and metering protocols that only implement AES encryptionApplications needing flexible nonce lengthsInteroperability with existing EAX deployments

Variants in NextSSL

3
AlgorithmTierSizes (bytes)StandardsAPI
AES-128-EAX
aes-128-eax
standard key 16 · nonce 16 · tag 16 EAX (Bellare, Rogaway, Wagner 2004) safe
AES-192-EAX
aes-192-eax
standard key 24 · nonce 16 · tag 16 EAX (Bellare, Rogaway, Wagner 2004) safe
AES-256-EAX
aes-256-eax
standard key 32 · nonce 16 · tag 16 EAX (Bellare, Rogaway, Wagner 2004) safe

Frequently asked questions

Which AES-EAX variants does NextSSL include?

NextSSL registers 3 AES-EAX variants: aes-128-eax, aes-192-eax, aes-256-eax.