Message Authentication and Context Binding
Define what a message authentication code verifies and use structured encoding to prevent distinct records from receiving one interpretation.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A tag authenticates bytes under a shared secret
A MAC has a tagging algorithm and a verification algorithm. In a standard unforgeability game, the protected event is production of a valid tag for a message not already authenticated by the tagging interface. The verifier needs the same protected key material or an intended verification key for the construction. A MAC does not encrypt the message. Parties holding the shared key can ordinarily both create tags, unlike the public verification model of a digital signature.
Define an unambiguous message to be authenticated
Concatenating fields without lengths can make \((ab,c)\) and \((a,bc)\) both encode as “abc”. Use length-aware encoding and bind protocol role, message type and relevant session state. Checking a sequence or fresh challenge is a separate anti-replay property. Authenticated encryption combines integrity with confidentiality. Digital signatures give a different key-distribution arrangement.[1]