Skip to main content
Associate
July 28, 2025
Question

STM32 H7 crypto lib unable to run ecdh

  • July 28, 2025
  • 0 replies
  • 250 views

I am trying to run ECDH p384 operation on STM32H753.
Using the STM32 Cryptolib 4.5.0, I get the CMOX_ECC_ERR_MEMORY_FAIL error during the operation
I increased the stack size to the maximum

I was able to run this using mbedTLS + hardware blocks like RNG, CRYP, CRC enabled. And it runs but the time for ECDH P384 is about 200ms (with 480mhs clock). I was hoping to achieve times in the order of tens of milliseconds as described here.

What am I missing?

https://wiki.st.com/stm32mcu/wiki/Security:STM32H7_Series:_Cryptographic_Library_Performance#tab=STM32H753