Message authentication code
|
In cryptography, a message authentication code (MAC) is a short piece of information used to authenticate a message. A MAC algorithm (sometimes termed a keyed hash function) accepts as input a secret key as well as the message, and produces a MAC (sometimes known as a tag). The MAC protects both a message's integrity—by ensuring that a different MAC will be produced if the message has changed—as well as its authenticity—because only someone who knows the secret key could have generated a valid MAC.
MAC algorithms can be constructed from other cryptographic primitives, such as cryptographic hash functions (as in the case of HMAC) or from block cipher algorithms (OMAC and PMAC).
See also
- Data Authentication Code, a DES-based MAC algorithm from ANSI.
- UMAC
- HMAC
- Poly1305-AES
- The simple scheme described in One-time pad
External links
- RSA FAQ's entry on MACs (http://www.rsasecurity.com/rsalabs/node.asp?id=2177)