36. Seg_done_it
36.1. Function description:
This demo shows how to trigger segment calculation complete interrupt.
Enable global interrupt & register HASH interrupt.
Enable segment calculation complete interrupt.
Configure the HASH and start the message digest computing, one is full block without auto-padding, another is short segment with auto-padding, after finish the first segment calculation will trigger the interrupt.
Waiting trigger the related interrupt and enter interrupt serve function.
Note
Using packaged function: HASH_SHA512_MULTI_SEG to realize the multiple segment calculation, more information to see the comments about the function.
36.2. Main configuration:
Algorithm |
Mode |
DMA |
Data Type |
sha512 |
hash |
disable |
no swap |
36.3. Test result:
If successfully trigger and enter interrupt service routine, then print pass, if not print fail.
36.4. IO connection:
None