2020-09-21 06:21 AM
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.
2020-09-21 07:18 AM
>>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
2020-09-21 07:24 AM
If the crypto library is using the crypto hardware: Stm32L07 has crypto hardware disabled.
2020-09-22 10:02 PM
I have enabled CRC macro and called init func in main. still no response
2020-09-22 10:03 PM
I don't think that there is any crypto hardware in stm32L0