AES Encription with STM32 L073RZ

Post here first, or if you can't find a relevant section!
Post Reply
dforco
Posts: 4
Joined: Tue Jul 18, 2023 1:55 pm

AES Encription with STM32 L073RZ

Post 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!
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: AES Encription with STM32 L073RZ

Post 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.
cashewsattack
Posts: 1
Joined: Fri Jul 28, 2023 10:40 am

Re: AES Encription with STM32 L073RZ

Post 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.
ES 256drift boss ECB
dforco
Posts: 4
Joined: Tue Jul 18, 2023 1:55 pm

Re: AES Encription with STM32 L073RZ

Post 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.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: AES Encription with STM32 L073RZ

Post 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.
dforco
Posts: 4
Joined: Tue Jul 18, 2023 1:55 pm

Re: AES Encription with STM32 L073RZ

Post 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
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: AES Encription with STM32 L073RZ

Post 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.
Post Reply

Return to “General discussion”