Professional Documents
Culture Documents
Message Authentication Code: M. Abidoon Qadir
Message Authentication Code: M. Abidoon Qadir
Message Authentication Code: M. Abidoon Qadir
Code
M. Abidoon Qadir
Number of 80 (4 64 (4 160 (5
steps rounds of rounds of paired
20) 16) rounds of
16)
Maximum 264-1 bits
message size
Data and Network Security 11
HMAC
• A keyed-hash message authentication code, or HMAC, is a type
of message authentication code (MAC) calculated using a
cryptographic hash function in combination with a secret key.
• The cryptographic strength of the HMAC depends upon the
cryptographic strength of the underlying hash function and on
the size and quality of the key.
• An iterative hash function breaks up a message into blocks of a
fixed size and iterates over them with a compression function.
• Motivations:
– Cryptographic hash functions executes faster in software than
encryptoin algorithms such as DES
– Library code for cryptographic hash functions is widely available
– No export restrictions from the US