Skip to main content
Associate II
February 25, 2024
Question

AES in STM32F423

  • February 25, 2024
  • 2 replies
  • 964 views

Hello  for all

In last days i was begin to implementation AES to work on stm32f423
I am using example in NIST Special Publication 800-38A to take key-128 bit, input data that plain text , encryption and decryption data.
but nothing seems to work , when i print HAL_CRYP_GetError(&hcryp)
it return 0.

I hope my question clear enough.
Any tips for this.
best regard. 

This topic has been closed for replies.

2 replies

STOne-32
Technical Moderator
February 25, 2024

Dear @mick,

Can you please give more details on your code and  also to run default examples in HAL and see if working ? 

In this series Crypto engine is different and optimized for AES only vs others bigger variants . So may be the Software calls are not  correct. 

IMG_6553.jpeg

Hope it helps you .

STOne-32

mickAuthor
Associate II
February 25, 2024

Thank @STOne-32 for reply

i am new for using AES in this MCU stm32f423

i am using cube Mx to active AES  in  ECB mode and generate the code 

1.png

2.png

3.png

I hope my question become clear enough

Thanks for any advice