AES-EAX
Two-pass AEAD combining AES-CTR with OMAC (CMAC) authentication
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–2004AES-EAX published by Mihir Bellare, Phillip Rogaway, David Wagner
How it works
- Compute N = OMAC_K(0 || nonce) and use it as the initial counter.
- Encrypt the plaintext with AES-CTR starting at N.
- Compute H = OMAC_K(1 || associated data) and C' = OMAC_K(2 || ciphertext).
- 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
Variants in NextSSL
3| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| 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.
Families with similar names
Other authenticated encryption
All 392Related
CBC-MAC then counter-mode encryption with AES (NIST SP 800-38C, RFC 3610)
AES-GCMCounter-mode AES with a GHASH polynomial MAC; the default AEAD of TLS and IPsec
AES-SIVDeterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher