Course contentsShow
← Security
Lesson 130 of 3,0523. Symmetric Cryptography Deep DiveFree lesson

AEAD Security Properties and Limitations

Nonce requirements, key commitment, message limits, and when AEAD alone isn't sufficient.

AEAD Security Properties and Limitations

What you'll learn: The guarantees AEAD provides — and the critical boundaries where those guarantees end.

AEAD (Authenticated Encryption with Associated Data) modes like AES-GCM and ChaCha20-Poly1305 are powerful, but they're not magic shields. Understanding what they do and don't protect is essential for secure system design.

What AEAD Guarantees

AEAD provides confidentiality (encrypted data can't be read) and authenticity (tampering is detectable). It also protects associated data from modification without encrypting it. These properties hold only when used correctly.

Critical Requirements and Limitations

Nonce Requirements:
Never reuse a nonce with the same key. In GCM, nonce reuse is catastrophic — it can leak your key. In ChaCha20-Poly1305, it breaks authentication. Think of the nonce as a "one-time ticket" — once used, it's burned forever for that key.

Key Commitment:
Standard AEAD modes don't guarantee key commitment — different keys might decrypt the same ciphertext to different plaintexts. This enables certain advanced attacks when adversaries control keys. Most applications don't face this threat, but high-security contexts must consider it.

Message Limits:
Every AEAD mode has practical limits. AES-GCM becomes unsafe after approximately 2^32 blocks (~64GB) under one key. ChaCha20-Poly1305 limits messages to ~256GB each. Exceed these, and security degrades.

What AEAD Doesn't Protect:

  • Replay attacks: An attacker can resend valid old messages
  • Traffic analysis: Message size, timing, and frequency are visible
  • Key management: AEAD assumes you already have a secure key
  • Side channels: Implementation flaws like timing leaks bypass AEAD entirely

Think of AEAD as a tamper-evident envelope — it protects the contents but can't stop someone from copying and redelivering the whole envelope, or noticing when you send mail.

Key Takeaway:
AEAD provides strong confidentiality and authenticity guarantees, but only when nonces are unique, message limits are respected, and you layer additional protections for replay attacks, traffic analysis, and key management.