Skip to main content
Associate II
February 4, 2025
Solved

STM32F4 [X-CUBE-CRYPTOLIB] - Cryptography Support

  • February 4, 2025
  • 3 replies
  • 1109 views

Hello,

I am using the Nucleo-STM32F411RE development board and require support for cryptographic functions, particularly ECC NIST P-256, MAC, etc, for my development use cases.

To achieve this, I downloaded the X-CUBE-CRYPTOLIB v4.3.0 package as it was mentioned in the product brief. However, I could not find any example projects specifically for the STM32F4 series.

I also attempted to modify examples from other STM32 series, but I encountered faults and was unable to successfully run the code.

Could anyone provide a working example for the STM32F4 series, or share a step-by-step user guide? As I am new to STM32 MCU boards, this has been quite time-consuming, and any guidance would be greatly appreciated.

Thank you for your help!

Best regards,
Akash M

Best answer by Imen.D

Hello @Akash_M ,

The ECC example for the Nucleo-L476RG board can be a good starting point for you.

The STM32 cryptographic library package includes firmware functions for the STM32 microcontrollers (also in the STM32F4 series). So, you can adapt the examples from the Nucleo-L476RG to your Nucleo-F411 board. 

This ST wiki article may help you: Security:Getting started with the Cryptographic Library - stm32mcu.

3 replies

Imen.DBest answer
Technical Moderator
February 4, 2025

Hello @Akash_M ,

The ECC example for the Nucleo-L476RG board can be a good starting point for you.

The STM32 cryptographic library package includes firmware functions for the STM32 microcontrollers (also in the STM32F4 series). So, you can adapt the examples from the Nucleo-L476RG to your Nucleo-F411 board. 

This ST wiki article may help you: Security:Getting started with the Cryptographic Library - stm32mcu.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Akash_MAuthor
Associate II
February 4, 2025

Hello @Imen.D ,

Thanks for the guide!!

Will try out and get back with the results.

Best Regards,

Akash

Akash_MAuthor
Associate II
February 6, 2025

Hi @Imen.D ,

 Tried as per your references, It is working now!!

Best Regards,

Akash