15. Hash_sha512

15.1. Function description:

This demo shows the operation of HASH SHA512, the means about filling data writed to fifo is via soft.

  • Configure the HASH.

  • Enable HASH and filling data by soft to start calculation, by reading the hash calculation finish status to judge whether calculation is done.

  • Waiting calculation done to compare the result with the golden data to check.

Note

The golden data getted by hash online calculator.

15.2. Main configuration:

15.2.1. Hash configure

Algorithm

Mode

DMA

Data Type

sha512

hash

disable

no swap

15.3. Test result:

If the output result is same as the golden data, then print pass, if not print fail.

15.4. IO connection:

None