Skip to main content
SSiwa.1
Associate
September 21, 2020
Question

Why is crypto not working in stm32L071CBTx?

  • September 21, 2020
  • 3 replies
  • 1019 views

Hello all. I am using stm32L071CBTx and I need to implement crypto here. I am using official crypto library(UM1924). I have managed to run the code with my hardware. Th problem I am facing here is that whenever I change plainText values, it doesn't work and go to errorhandler function. same is true with other parameters such as keys etc. What should I do ? Can I use any c/c++ library and use it in stm32 ?

Thanks and Regards.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
September 21, 2020

>>Can I use any c/c++ library and use it in stm32 ?

Yes, that's how compilers work. You can use whatever fits into your FLASH/RAM footprint.

Code written for a PC with a couple of GB will need to be adjusted for systems where resources are less boundless.

The STM32 crypto libraries expect the CRC peripheral to be enabled

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
SSiwa.1
SSiwa.1Author
Associate
September 23, 2020

I have enabled CRC macro and called init func in main. still no response

Uwe Bonnes
Chief
September 21, 2020

If the crypto library is using the crypto hardware: Stm32L07 has crypto hardware disabled.

SSiwa.1
SSiwa.1Author
Associate
September 23, 2020

I don't think that there is any crypto hardware in stm32L0