message-authentication-code · shipping · also MAC, Authentication tag

Message authentication code (MAC)

A message authentication code (MAC) is a keyed cryptographic tag used to check the integrity and authenticity of covered data.

Related Observatory article: Message authentication code (MAC) on hesela.com

The verifier checks a received tag using the required key and algorithm. MAC also names the mechanism that produces the tag; HMAC is one hash-based construction. Unlike an unkeyed checksum, verification depends on a secret shared with authorized tag producers. [1] [2]

Authentication applies to the selected input bytes, not every claim surrounding them. A storage protocol must bind the relevant record identity and decide which version it accepts. Hesela's examples distinguish altered bytes, unbound fields, old records and ambiguous field boundaries. They are synthetic demonstrations, not storage-device measurements. [3]

Relations

related
HMAC, Checksum, Cryptographic hash function, Authenticated encryption, Hash domain separation, Replay attack

Limitations

  • A MAC does not encrypt data, recover damaged bytes or by itself prove that a returned record is the latest committed version. [2, 3]
  • Shared-key authentication does not distinguish which holder of the key generated a valid tag and does not provide non-repudiation. [1]

Citations

  1. NIST CSRC glossary: message authentication code, tag/mechanism definitions and non-repudiation boundary (accessed 2026-10-22)
  2. RFC 2104: shared-key message authentication and HMAC construction, sections 1-2 (accessed 2026-10-22)
  3. Hesela: HMAC context, freshness and field-encoding examples (accessed 2026-10-22)
Sources & caveats
  • MAC is used in the cryptographic sense, not Media Access Control or mandatory access control. No algorithm approval or key-management claim is made.

JSON: /data/terms/message-authentication-code.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Message authentication code (MAC). Hesela. 2026-10-22. https://hesela.dev/terms/message-authentication-code/