17. Hash_sha512_multi_seg

17.1. Function description:

This demo shows the operation of multiple segment calculation.

  • Configure the HASH and start the message digest computing, the before segments is full block without auto-padding, the last one is short segment with auto-padding.

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

Note

Using packaged function: HASH_SHA512_MULTI_SEG to realize the multiple segment calculation, more information to see the comments about the function. The golden data getted by hash online calculator.

17.2. Main configuration:

Algorithm

Mode

DMA

Data Type

sha512

hash

disable

no swap

17.3. Test result:

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

17.4. IO connection:

None