Authenticated encryption

AES-256-CCM

CBC-MAC then counter-mode encryption with AES (NIST SP 800-38C, RFC 3610)

standard Safe API Specified in a FIPS standard

About AES-256-CCM

AES-256-CCM is one of 4 AES-CCM variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 32-byte (256-bit) key, a 12-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites NIST SP 800-38C and RFC 3610. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

AES-CCM authenticates the associated data and plaintext with CBC-MAC and encrypts with AES in counter mode, using a single key and a single block cipher. It is common in constrained wireless standards where only an AES encryption core is available.

Counter with CBC-MAC was designed to need only the forward direction of a block cipher, which keeps hardware small. It is an authenticate-then-encrypt construction: a formatted first block encodes the nonce, tag length and message length, the CBC-MAC runs over that block, the associated data and the plaintext, and the tag is encrypted with the first counter block.

CCM is used in IEEE 802.11 (CCMP in WPA2), IEEE 802.15.4, Bluetooth Low Energy and the TLS CCM cipher suites. NextSSL offers AES-128, AES-192 and AES-256 with 16-byte tags and AES-128-CCM-8 with an 8-byte tag. The message length must be known before processing begins, and the mode is two-pass, so it is slower than GCM in software.

History

2003–2004
  1. Specified in RFC 3610

  2. Specified in NIST SP 800-38C

How it works

  1. Format the nonce, tag length and message length into the first block B0.
  2. Compute CBC-MAC over B0, the length-prefixed associated data and the plaintext.
  3. Encrypt the plaintext in counter mode starting from counter block 1.
  4. Encrypt counter block 0 and XOR it with the CBC-MAC value to form the tag.

Security notes

Nonce reuse leaks plaintext XORs and weakens authentication, so nonces must be unique per key. CCM-8 tags offer only 64-bit forgery resistance per attempt and suit only protocols that limit verification attempts.

Typical uses

Wi-Fi (WPA2 CCMP) and IEEE 802.15.4 networksBluetooth Low Energy link encryptionIoT and embedded TLS with hardware AES

Sizes

FieldBytesMeaning
key32Secret key
nonce12Nonce / IV
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
key, nonce = ns.random(32), ns.random(12)
ct = ns.call("aead_seal", "aes-256-ccm", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = ns.call("aead_open", "aes-256-ccm", None, key, nonce, b"header", ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other AES-CCM variants

3

Frequently asked questions

What is AES-256-CCM?

AES-256-CCM is an AEAD in the AES-CCM family. AES-CCM authenticates the associated data and plaintext with CBC-MAC and encrypts with AES in counter mode, using a single key and a single block cipher.

What are the AES-256-CCM sizes?

In NextSSL, AES-256-CCM uses: key 32 bytes, nonce 12 bytes, tag 16 bytes.

Who designed AES-256-CCM and when?

AES-256-CCM belongs to the AES-CCM family, first published in 2003 by Doug Whiting, Russ Housley, Niels Ferguson. Its origin: NIST SP 800-38C; RFC 3610.

Which standards define AES-256-CCM?

AES-256-CCM is referenced by NIST SP 800-38C, RFC 3610. It is specified in a FIPS standard.

Is AES-256-CCM safe to use?

AES-256-CCM is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other AES-CCM variants are there?

NextSSL also registers aes-128-ccm, aes-128-ccm-8, aes-192-ccm in the AES-CCM family.