encyclopegia.org

CCM mode

CCM mode (counter with cipher block chaining message authentication code; counter with CBC-MAC) is a mode of operation for cryptographic block ciphers.[src] It is an authenticated encryption algorithm designed to provide both authentication and confidentiality.[src] CCM mode is only defined for block ciphers with a block length of 128 bits.[src] The nonce of CCM must be carefully chosen to never be used more than once for a given key.[src] This is because CCM is a derivation of counter (CTR) mode and the latter is effectively a stream cipher.[src]

CCM mode (counter with cipher block chaining message authentication code; counter with CBC-MAC) is a mode of operation for cryptographic block ciphers.[src] It is an authenticated encryption algorithm designed to provide both authentication and confidentiality.[src] CCM mode is only defined for block ciphers with a block length of 128 bits.[src] The nonce of CCM must be carefully chosen to never be used more than once for a given key.[src] This is because CCM is a derivation of counter (CTR) mode and the latter is effectively a stream cipher.[src] ==Encryption and authentication== As the name suggests, CCM mode combines counter (CTR) mode for confidentiality with cipher block chaining message authentication code (CBC-MAC) for authentication.[src] These two primitives are applied in an "authenticate-then-encrypt" manner: CBC-MAC is first computed on the message to obtain a message authentication code (MAC), then the message and the MAC are encrypted using counter mode.[src] The main insight is that the same encryption key can be used for both, provided that the counter values used in the encryption do not collide with the (pre-)initialization vector used in the authentication.[src] A proof of security exists for this combination, based on the security of the underlying block cipher.[src] The proof also applies to a generalization of CCM for any block size, and for any size of cryptographically strong pseudo-random function (since in both counter mode and CBC-MAC, the block cipher is only ever used in one direction).[src] CCM mode was designed by Russ Housley, Doug Whiting and Niels Ferguson.[src] At the time CCM mode was developed, Russ Housley was employed by RSA Laboratories.[src] A minor variation of CCM, called CCM*, is used in the IEEE 802.15.4 standard, used as the MAC layer in Zigbee.[src] CCM* includes all of the features of CCM.[src] It allows a choice of MAC lengths down to 0 (which disables authentication and becomes encryption-only).[src] ==Performance== CCM requires two block cipher encryption operations on each block of an encrypted-and-authenticated message, and one encryption on each block of associated authenticated data.[src] According to Crypto++ benchmarks, AES CCM requires 28.6 cycles per byte on an Intel Core 2 processor in 32-bit mode.[src] Notable inefficiencies: CCM is not an "on-line" authenticated encryption with associated data (AEAD), in that the length of the message (and associated data) must be known in advance.[src] In the MAC construction, the length of the associated data has a variable-length encoding, which can be shorter than machine word size.[src] This can cause pessimistic MAC performance if associated data is long (which is uncommon).[src] Associated data is processed after message data, so it is not possible to pre-calculate state for static associated data.[src] ==Patents== The catalyst for the development of CCM mode was the submission of offset codebook (OCB) mode for inclusion in the IEEE 802.11i standard.[src] Opposition was voiced to the inclusion of OCB mode because of a pending patent application on the algorithm.[src] Inclusion of a patented algorithm meant significant licensing complications for implementors of the standard.[src] While the inclusion of OCB mode was disputed based on these intellectual property issues, it was agreed that the simplification provided by an authenticated encryption system was desirable.[src] Therefore, Housley, et al.[src] developed CCM mode as a potential alternative that was not encumbered by patents.[src] Even though CCM mode is less efficient than OCB mode, a patent free solution was preferable to one complicated by patent licensing issues.[src] Therefore, CCM mode went on to become a mandatory component of the IEEE 802.11i standard, and OCB mode was relegated to optional component status, before eventually being removed altogether.[src] ==Use== CCM mode is used in IEEE 802.11i (as CCMP, the CCM encryption protocol for WPA2), IPsec, and TLS 1.2, as well as Bluetooth Low Energy (as of Bluetooth 4.0).[src] It is available for TLS 1.3, but not enabled by default in OpenSSL.[src] From version 0.8 to 0.8.3 it was the default in OpenZFS' native encryption .[src] ==See also== Authenticated encryption EAX mode Galois/Counter Mode Stream cipher Stream cipher attacks CCMP ==External links== : Counter with CBC-MAC (CCM) : Using Advanced Encryption Standard (AES) CCM Mode with IPsec Encapsulating Security Payload (ESP) : AES-CCM Cipher Suites for Transport Layer Security (TLS) A Critique of CCM (by the designer of OCB)[src]

38 sentences · 38 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"CCM mode." encyclopegia.org, 2026, https://encyclopegia.org/wiki/ccm-mode. Accessed 30 November 2026.

Chicago

"CCM mode." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/ccm-mode.

APA

encyclopegia.org. (2026). CCM mode. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/ccm-mode

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

God mode

stub · references available

CCM

stub · references available

tripes à la mode de Caen

stub · references available

burst mode

stub · references available

Dual-mode transit

stub · references available

metering mode

stub · references available

hypodorian mode

stub · references available

The Best of Depeche Mode Volume 1

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377632334 · 0.5 · snapshot enwiki-001377632334

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.