Skip to main content
todd
Visitor II
January 31, 2014
Question

STM32F Cryptographic library package (HW accelerated)

  • January 31, 2014
  • 1 reply
  • 793 views
Posted on January 31, 2014 at 23:17

I have a question about the HW crypto acceleration in the STM32F4 family.  According to Note 2 on p.12 in the STM document ''STM32 Cryptographic Library Package Presentation'' (see here: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/CD00208802.pdf )  ''HW acceleration is only available for STM32F1x and STM32F41x devices''

Is this in fact true?  What about the other devices with HW crypto acceleration (e.g., STM32F42x, STM32F43x)

?????

Can someone please clarify?  Thank you.

#stm32f4-cryptographic-library
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
February 1, 2014
Posted on February 01, 2014 at 02:37

Pretty sure none of the F42x devices have the CRYP unit

The F21x, F41x, and F43x devices should have the CRYP and HASH, this can be readily detected with the following.

RCC->AHB2ENR |= 0xFFFFFFFF;

if (RCC->AHB2ENR & RCC_AHB2Periph_CRYP)

puts(''CRYP'');

if (RCC->AHB2ENR & RCC_AHB2Periph_HASH)

puts(''HASH'');

if (RCC->AHB2ENR & RCC_AHB2Periph_RNG)

puts(''RNG'');

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..