One-key MAC
One-key MAC (OMAC) is a family of message authentication codes constructed from a block cipher much like the CBC-MAC algorithm.[src] It may be used to provide assurance of the authenticity and, hence, the integrity of data.[src] Two versions are defined: * The original OMAC of February 2003, which is rarely used.[src] The preferred name is now "OMAC2".[src] * The OMAC1 refinement, which became an NIST recommendation in May 2005 under the name CMAC.[src] OMAC is free for all uses: it is not covered by any patents.[src]
One-key MAC (OMAC) is a family of message authentication codes constructed from a block cipher much like the CBC-MAC algorithm.[src] It may be used to provide assurance of the authenticity and, hence, the integrity of data.[src] Two versions are defined: The original OMAC of February 2003, which is rarely used.[src] The preferred name is now "OMAC2".[src] The OMAC1 refinement, which became an NIST recommendation in May 2005 under the name CMAC.[src] OMAC is free for all uses: it is not covered by any patents.[src] Iwata and Kurosawa proposed an improvement of XCBC that requires less key material (just one key) and named the resulting algorithm One-Key CBC-MAC (OMAC) in their papers.[src] They later submitted the OMAC1 (= CMAC), a refinement of OMAC, and additional security analysis.[src] Calculate a temporary value k 0 = E k (0).[src] If msb(k 0 ) = 0, then k 1 = k 0 ≪ 1, else k 1 = (k 0 ≪ 1) ⊕ C; where C is a certain constant that depends only on b.[src] (Specifically, C is the non-leading coefficients of the lexicographically first irreducible degree-b binary polynomial with the minimal number of ones: for 64-bit, for 128-bit, and for 256-bit blocks.) If , then , else .[src] Return keys (k 1 , k 2 ) for the MAC generation process.[src] As a small example, suppose , , and .[src] Then and .[src] The CMAC tag generation process is as follows: Divide message into b-bit blocks , where m 1 , ..., m n−1 are complete blocks.[src] (The empty message is treated as one incomplete block.) If m n is a complete block then else .[src] Let .[src] For , calculate .[src] Output .[src] The verification process is as follows: Use the above algorithm to generate the tag.[src] Check that the generated tag is equal to the received tag.[src] ==Implementations== Python implementation: see the usage of the AES_CMAC() function in "impacket/blob/master/tests/misc/test_crypto.py", and its definition in "impacket/blob/master/impacket/crypto.py" Ruby implementation ==References== ==External links== The AES-CMAC Algorithm The AES-CMAC-96 Algorithm and Its Use with IPsec The Advanced Encryption Standard-Cipher-based Message Authentication Code-Pseudo-Random Function-128 (AES-CMAC-PRF-128) OMAC Online Test More information on OMAC Rust implementation[src]
28 sentences · 28 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"One-key MAC." encyclopegia.org, 2026, https://encyclopegia.org/wiki/one-key-mac. Accessed 05 December 2026.
Chicago
"One-key MAC." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/one-key-mac.
APA
encyclopegia.org. (2026). One-key MAC. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/one-key-mac
Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON