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
Define two fixed pads:
: byte sequence of length with all bytes equal to : byte sequence of length with all bytes equal to
Then
