cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F2 SHA1 Hashing

mailmail9115
Associate
Posted on December 13, 2012 at 22:31

Hi,

I am trying to integrate STM32F2 SHA1 support into an existing crypto API that is structured with three main functions:

sha_init

sha_update

sha_final

It appears from the STM32F2 SHA1 example code that the HASH processor is meant to be used in one step - for example, making only one call to create a SHA1 hash.  What would be the best way to break STM32F2 SHA1 hashing up between three functions (as shown above)?

Thanks,

Chris

#hash #sha1 #crypto #stm32
3 REPLIES 3
lowpowermcu
Associate II
Posted on December 21, 2012 at 10:56

Hi chrisc,

What would be your application to need three functions and not a read-to-use function with buffer memory.

Is it some data coming on the fly?

If so you have to split the HASH_SHA1() function.

MCU Lüfter