21. Hmac_md5
21.1. Function description:
This demo shows the operation of HMAC MD5, the means about filling data writed to fifo is via soft.
Configure the HMAC.
Enable HASH and filling data by soft to start calculation.
Waiting calculation done to compare the result with the golden data to check.
Note
When the length of the key is greater than one block size, need to using hash operation to get the real key for hmac operation. The golden data getted by hash online calculator.
21.2. Main configuration:
21.2.1. Hash configure
Algorithm |
Mode |
DMA |
Data Type |
md5 |
hmac&hash |
disable |
no swap |
21.3. Test result:
If the output result is same as the golden data, then print pass, if not print fail.
21.4. IO connection:
None