The STM32 cryptographic library package (X-CUBE-CRYPTOLIB) includes all the major security algorithms for encryption, hashing, message authentication, and digital signing, enabling developers to satisfy application requirements for any combination of data integrity, confidentiality, identification/authentication, and non-repudiation.
The library includes firmware functions for the STM32 microcontrollers in the STM32F0 series, STM32F1 series, STM32F2 series, STM32F3 series, STM32F4 series, STM32F7 series, STM32G0 series, STM32G4 series, STM32H5 series, STM32H7 series, STM32L0 series, STM32L1 series, STM32L4 series, STM32L4+ series, STM32L5 series, STM32U5 series, STM32WBA series, STM32WB series, and STM32WL series depending on their Arm® Cortex®-M processor. For more details, refer to the STM32 cryptographic library dedicated pages of the STM32 MCU wiki at https://wiki.st.com/stm32mcu.
Most of the well-used algorithms are certified according to the US cryptographic algorithm validation program (CAVP), helping customers to prove quickly and cost-effectively the security of their new products.
Full details are available online at the NIST CSRC algorithm validation lists website, selecting the CAVP web page.
In this package, there are examples for each algorithm for popular development tools including IAR Systems® EWARM (IAR Embedded Workbench®), Keil® MDK-ARM, and GCC -based IDEs such as STMicroelectronics STM32CubeIDE.
To benefit from STM32 cryptographic accelerators, refer to the STM32Cube MCU and MPU package hardware abstraction layer (HAL) functions and examples.