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

AES-CCM and Other AEAD Modes

CCM mode for constrained environments, EAX, OCB, and their trade-offs in performance and patents.

AES-CCM and Other AEAD Modes

You'll learn about alternative AEAD modes beyond GCM and ChaCha20-Poly1305, focusing on their unique trade-offs.

We've covered AES-GCM and ChaCha20-Poly1305, but the authenticated encryption world offers other options. Each was designed with different priorities: resource constraints, speed, or patent freedom.

CCM: Counter with CBC-MAC

CCM Mode combines CTR mode (for encryption) with CBC-MAC (for authentication). It was specifically designed for constrained environments like IoT devices and wireless sensors where memory and processing power are limited.

CCM's advantage is simplicity: it only requires one block cipher primitive (AES), making implementations smaller. However, it's two-pass (encrypts data, then computes MAC separately), making it slower than GCM. CCM is widely used in protocols like WPA2 and Bluetooth.

EAX Mode

EAX is a patent-free AEAD mode designed to be simpler than CCM while maintaining security. It uses CTR mode with a MAC called OMAC. EAX offers cleaner nonce handling and is easier to implement correctly than CCM, but it's also two-pass and therefore slower than single-pass modes.

OCB Mode

OCB (Offset Codebook) is the speed champion—it's single-pass and can be twice as fast as GCM in software. However, OCB has been encumbered by patents (though recently freed for many uses), which limited its adoption. You'll rarely see it in mainstream protocols despite its performance advantages.

Trade-off Summary

  • CCM: Small footprint, good for constrained devices, but slower
  • EAX: Patent-free, cleaner design, moderate performance
  • OCB: Fastest, but patent history limited adoption
  • GCM: Industry standard, hardware-accelerated, widely supported

Key Takeaway: While GCM dominates modern systems, CCM serves resource-constrained environments, EAX offers patent freedom, and OCB provides maximum performance where patents aren't a concern—each AEAD mode reflects different engineering priorities.