cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable AES/CRYP IN STM32cubeMX

Nirene
Associate

Greetings everyone,
Using the C programming language, I'm creating the encryption algorithm AES-256 code for a trusted execution environment and checking to see if the hardware supports it.
AES/CRYP enabling is giving me trouble. I can't find it under Connectivity or Security, and I can't enable it with STM32CubeMX.
I'm getting this error, so please assist.

Nirene_0-1767090537058.png

 

3 REPLIES 3
mƎALLEm
ST Employee

Hello,

What crypto version you are trying to use? Cryptolib (a cryptographic library totally implemented by software)? or the Crypt peripheral? and which STM32L5 part number are you using?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,
I am using the ST part number STM32L552E-EV evaluation board based on STM32L552ZET6Q. I am using the hardware Cryptographic (CRYP/AES) peripheral provided by the STM32L5 series for AES-256 encryption, rather than the software-only CryptoLib.
The implementation is done using STM32CubeIDE and HAL APIs, leveraging the MCU’s built-in security features.
Also, I tried to install x-cube-cryptolib-4-6-0, but I still get this problem.

Hello,

STM32L552 doesn't feature AES algo by hardware. STM32L562 does.

Please refer to the datasheet of the product:

L552: only HASH is available.

mALLEm_0-1767105103770.png

L562:

mALLEm_0-1767105978981.png

 


@Nirene wrote:

Also, I tried to install x-cube-cryptolib-4-6-0, but I still get this problem.


That's the cryptolib I'm talking about and that's another question as you are asking for hardware Cryptographic (CRYP/AES) peripheral.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.