Page 1 of 1

AES Encription with STM32 L073RZ

Posted: Tue Jul 18, 2023 2:02 pm
by dforco
Hi team, could anyone give me some guidance to encrypt with AES 256 ECB mode on STM32 L073RZ with Arduino IDE.
mbedtls library seams to wotk only on ESP32, and it is not ported to STM32
Appreciate your support!

Re: AES Encription with STM32 L073RZ

Posted: Tue Jul 18, 2023 5:43 pm
by ag123
encryption is heavyweight processing, requires lots of memory and cpu power, the more suitable CPUs are probably in the F4 family minimum
https://www.st.com/en/microcontrollers- ... 7-417.html
or the 'high end' STM32 H7 series
https://www.st.com/en/microcontrollers- ... eries.html

of course these days there is also the STM32MP1
https://www.st.com/en/microcontrollers- ... eries.html
which are practically application processors that is pretty competitive as do the Rpi etc.
just that MP1 has in addition, mcus in it.

Re: AES Encription with STM32 L073RZ

Posted: Fri Jul 28, 2023 10:43 am
by cashewsattack
Even though FreeRTOS 9.0.0 is likely out of date, it has been the only version of that library that has ever functioned for me. The same problem occurred when I used the most recent release on my actual code.

Re: AES Encription with STM32 L073RZ

Posted: Thu Aug 03, 2023 3:14 pm
by dforco
Thank you both for the answer, unfortunately I can not change the processor as it is embeded in the weareable application.
With ESP32 I was ussing mbedtls lib but it seams not to be ported to STM32, so I was looking for an alternative.

Re: AES Encription with STM32 L073RZ

Posted: Fri Aug 04, 2023 10:38 am
by dannyf
With ESP32 I was ussing mbedtls lib but it seams not to be ported to STM32
if it is not ported to stm32, why not just port it? presummably it is entirely in c.

Re: AES Encription with STM32 L073RZ

Posted: Fri Aug 04, 2023 12:16 pm
by dforco
Hi!
Finally I found that was ported to ARM in the folowing link:
https://johanneskinzig.de
I hope that helps others!
Thx for the support! have a nice day,
David

Re: AES Encription with STM32 L073RZ

Posted: Fri Aug 04, 2023 6:58 pm
by dannyf
i downloaded it from github and got it compiled (on a c99 compiler).

seemed to be for a bigger platform (windows / unix). not sure if it would actually fit into a tiny mcu.