cryptography

Definition

Hash-based Message Authentication Code

A hash-based message authentication code (HMAC) is a MAC constructed from a hash function (with block size ) and a secret key .

Construction

Let be the key padded or hashed depending on byte sequence length :

Define two fixed pads:

  • : byte sequence of length with all bytes equal to
  • : byte sequence of length with all bytes equal to

Then

1

Footnotes

  1. 192.019 Introduction to Security