Computer networks operate across physically insecure transmission channels where adversary nodes can intercept, inspect, alter, or inject arbitrary data packets. While symmetric and asymmetric encryption primitives protect data confidentiality by preventing unauthorized entities from reading transmitted plaintexts, encryption alone cannot guarantee data integrity or authenticity. An adversary can modify ciphertext blocks in transit, inject counterfeit messages, or replay previously captured transmissions. Message authentication and cryptographic hash functions provide the foundational mechanisms required to verify that a received message has not been altered and that it originates from the claimed sender. The mathematical study of message authentication centers on building compact, verifiable cryptographic authenticators. These authenticators bind a message to a secret key or an asymmetric identity. Cryptographic hash functions serve as the primary workhorse across this domain, compressing arbitrary-length input messages into short, fixed-length bitstrings known as message digests. These digests act as unique digital fingerprints that exhibit extreme sensitivity to input alterations. When combined with symmetric keys through constructions like Message Authentication Codes or with asymmetric key pairs through digital signatures, hash functions enable efficient, scalable security protocols across the modern Internet. Understanding these primitives requires exploring both their mathematical design and their cryptanalytic vulnerabilities. Hash functions rely on iterative compression architectures governed by the Merkle-Damgard construction, where non-linear round functions, message schedules, and bitwise operations introduce diffusion and confusion. Cryptanalysts evaluate these algorithms against mathematical limits, particularly the Birthday Paradox, which dictates the theoretical bounds of collision resistance. This chapter explores the formal security requirements, structural mechanics, operational properties, and concrete algorithms that govern message authentication, message digests, and cryptographic hash functions.
1. Message Authentication
Message authentication encompasses the cryptographic techniques used to verify the integrity of a transmitted message and the authenticity of its claimed originator. In real-world communication networks, an active attacker can intercept packets, alter individual bits, reorder message sequences, or impersonate legitimate network participants. Establishing secure communication therefore requires cryptographic mechanisms that allow a receiving node to confirm that an incoming data stream matches the exact payload transmitted by the legitimate source and has arrived without unauthorized modification.
1.1 Introduction
Message authentication is a procedure that allows communicating parties to verify that received messages are authentic. The two primary aspects of message authentication are confirming that the message content has not been altered (message integrity) and confirming that the message source is valid (data origin authentication). Message authentication protects communicating parties against active attacks by detecting any modification, fabrication, or unauthorized injection of data in transit.