cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L552 HASH Peripheral final digest with a multiple of 512 bits message

JMene.1
Associate II

I try to understand in details the way the Hash peripheral works on the STM32L552. I need to make the HASH SHA-256 with 224 blocks of 512 bits. The Hash works perfectly until the block 223. Then I enter 16 values in the FIFO (in my code below I have a loop for 15 because I entered previously another value). Then I launch the final digest. I expect the automatic digest of block 224 and the automatic padding in a block 225 to the final hash value. But I always have the wrong value in the final step. Any idea about what I'm missing?

JMene1_0-1761940069386.png

 

0 REPLIES 0