Overview
CMAC is a cryptographic method that protects confidentiality, authenticity, or integrity with a defined primitive or protocol step. It should be used only as part of a well-defined protocol with correct parameters and key handling.
CMAC protects secrecy, integrity, or authenticity with a named cryptographic primitive.
Compact metadata for implementation and discovery.
CMAC is a cryptographic method that protects confidentiality, authenticity, or integrity with a defined primitive or protocol step. It should be used only as part of a well-defined protocol with correct parameters and key handling.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(1)
tag = AES-CMAC(key, message)Computes a message authentication tag using a block-cipher based construction.
Show messages, keys, nonces, and verification values moving through the cryptographic construction.
CMAC operates in O(n) time and O(1) space within the Message Authentication family. Key governing relation: tag = AES-CMAC(key, message). Often compared with HMAC and AES.
What each reference supports for this entry.
Specifies CMAC as a block-cipher based message authentication code, supporting CMAC.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
CMAC and HMAC address nearby cryptography problems but make different implementation tradeoffs.