Skip to main content
mailmail9115
Visitor II
December 13, 2012
Question

STM32F2 SHA1 Hashing

  • December 13, 2012
  • 3 replies
  • 1298 views
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
This topic has been closed for replies.

3 replies

lowpowermcu
Associate III
December 21, 2012
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