Question: In this project you will implement HMAC (Keyed-hash Message Authentication Code) using SHA-512 as the building block. HMAC with key K of a input message

In this project you will implement HMAC (Keyed-hash Message Authentication Code) using SHA-512 as the building block. HMAC with key K of a input message M can be expressed as:

where is the key padded out to block size, which is 1024 bits when we use SHA-512. Here, opad, ipad are specified padding constants, which is specified as follows: ipad:00110110 (36 in hexidecimal) repeated by 1024/8=128 times; opad:01011100 (5C in hexidecimal) repeated by 1024/8=128. You do not need to implement SHA-512 yourself. For an implementation of SHA-512, you can use an existing crypto library.

Can you help me with the process (or psuedocode) of how to calcluate the HMAC value?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!