AES-192-CCM
CBC-MAC then counter-mode encryption with AES (NIST SP 800-38C, RFC 3610)
About AES-192-CCM
AES-192-CCM is one of 4 AES-CCM variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 24-byte (192-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–2004Specified in RFC 3610
Specified in NIST SP 800-38C
How it works
- Format the nonce, tag length and message length into the first block B0.
- Compute CBC-MAC over B0, the length-prefixed associated data and the plaintext.
- Encrypt the plaintext in counter mode starting from counter block 1.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 24 | Secret key |
| nonce | 12 | Nonce / IV |
| tag | 16 | Authentication tag |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
key, nonce = ns.random(24), ns.random(12)
ct = ns.call("aead_seal", "aes-192-ccm", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = ns.call("aead_open", "aes-192-ccm", None, key, nonce, b"header", ct)[0]
nextssl_aead_seal("aes-192-ccm", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_aead_open("aes-192-ccm", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Safe, "aes-192-ccm", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other AES-CCM variants
3Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is AES-192-CCM?
AES-192-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-192-CCM sizes?
In NextSSL, AES-192-CCM uses: key 24 bytes, nonce 12 bytes, tag 16 bytes.
Who designed AES-192-CCM and when?
AES-192-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-192-CCM?
AES-192-CCM is referenced by NIST SP 800-38C, RFC 3610. It is specified in a FIPS standard.
Is AES-192-CCM safe to use?
AES-192-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-256-ccm in the AES-CCM family.