2012-12-13 01:31 PM
Hi,
I am trying to integrate STM32F2 SHA1 support into an existing crypto API that is structured with three main functions:sha_initsha_updatesha_finalIt 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 #stm322012-12-20 05:28 AM
Hi,
Please refer to the following FW it may help you:FW link: http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f217_eth_ssl.zipAN link: https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fNichelite%20-%20Doesn%27t%20include%20FIN%20packet%20support&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B...2012-12-20 05:28 AM
Hi,
Please refer to the following FW it may help you:FW link: http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f217_eth_ssl.zipAN link: https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fNichelite%20-%20Doesn%27t%20include%20FIN%20packet%20support&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B...2012-12-21 01:56 AM
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