4
MAC and HMAC
In this chapter, we will learn about message authentication codes (MACs), also known as authentication tags. MACs are used in popular secure network protocols, such as TLS, SSH, and IPsec in order to establish both the integrity and authenticity of the transmitted data. They are also used in proprietary network protocols, for example, in financial software, for the same purpose. Additionally, MACs can be used in non-networked authenticated encryption, as we demonstrated in Chapter 2, Symmetric Encryption and Decryption. Another application of MAC is as the basis of some key derivation functions, such as PBKDF2. Key derivation will be covered in more detail in Chapter 5, Derivation of an Encryption Key from a Password. We will ...
Get Demystifying Cryptography with OpenSSL 3.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.