2025-12-30 2:33 AM - last edited on 2025-12-30 3:05 AM by Andrew Neil
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.
2025-12-30 3:28 AM
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?
2025-12-30 4:43 AM
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.
2025-12-30 6:33 AM - edited 2025-12-30 7:03 AM
Hello,
STM32L552 doesn't feature AES algo by hardware. STM32L562 does.
Please refer to the datasheet of the product:
L552: only HASH is available.
L562:
@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.