Information About

Hmac




An iterative hash function breaks up a message into blocks of a fixed size and iterates over them with a compression function. For example, MD5 and SHA-1 operate on 512-bit blocks. The size of the output of HMAC is the same as that of the underlying hash function (128 or 160 bits in the case of MD5 and SHA-1), although it can be truncated if desired.

HMAC is defined as

  Where <math>h</math> Is An Iterated Hash Function, <math>K</math> Is A Secret Key Padded With Extra Zeros To The Block Size Of The Hash Function, <math>m</math> Is The Message To Be Authenticated, <math>\</math> Denotes "http://wwwinformationdelightinfo/encyclopedia/entry/concatenation" class="copylinks">Concatenation , <math>\oplus</math> denotes Exclusive Or , and the outer padding <math>\mathrm{opad} = exttt{0x5c5c5c\ldots5c5c}</math> and inner padding <math>\mathrm{ipad} = exttt{0x363636\ldots3636}</math> are two one-block&ndashlong Hexadecimal constants