Skip to main content
Associate II
March 14, 2025
Question

STM32F4 [ECC] X-CUBE-CRYPTOLIB support

  • March 14, 2025
  • 2 replies
  • 655 views

Hello,

I am using the Nucleo-STM32F411RE development board and require support for cryptographic functions, particularly ECC Point Generation.

input: w0, N
output: Y, y

Begin
generate random scalar y on chosen curve
Y=y×G+w0×N (G as defined NIST P-256)
return Y
end


To achieve this, I downloaded the X-CUBE-CRYPTOLIB v4.3.0 package, But I could not find any API's suitable for above operations like (ECC scalar multiplication or addition) which are very basic operations in ECC algorithm.

Could anyone please help me with suggestions are feedback.

Best regards,
Akash M

@Imen.D Please help.

2 replies

Akash_MAuthor
Associate II
March 18, 2025

Hi @tobbymathew 

Please help!!

Best Regards,

Akash

Technical Moderator
April 28, 2025

Hello @Akash_M,

The STM32 cryptographic library, X-CUBE-CRYPTOLIB, provides abstraction of elementary cryptographic APIs including operations like elliptic curve scalar multiplication and addition .... This abstraction simplifies the implementation of complex cryptographic algorithms, such as key generation and digital signatures, enabling developers to integrate robust security features into their applications efficiently.

See wiki for supported algos: Introduction to cryptographic library with STM32 - stm32mcu

If possible to change the STM32F411 with other STM32 series (L4+, L5, U5, H5, H7 ...) which provide hardware accelerator of all elementary private key computations ( peripheral is called PKA).

Best Regards,

Younes