Skip to main content
RCost.1
Associate
November 11, 2021
Question

STM32U585 takes 13 seconds to compute RSA for TLS handshake

  • November 11, 2021
  • 1 reply
  • 925 views

I'm evaluating the STM32U585 TLS performance using the eval board B-U585I-IOT02A. The example application code for MQTT using TLS did not include code on how to load a client key for client authentication but I was able to add that in. The problem I see now is that when using private key the MCU takes 13 seconds to do the RSA computations during the handshake with the server to setup the connection. I track the delay to the following function _nx_crypto_huge_number_mont_power_modulus

Why does this take so long? Does the MCU have hardware acceleration that handles this and is just not being used? Is there something else that I'm doing wrong?

This topic has been closed for replies.

1 reply

Jocelyn RICARD
ST Employee
December 3, 2021

Hello @RCost.1​ 

yes the STM32U5 version used in the B-U585I-IOT02A embeds a Public Key Accelerator. The implementation of the connection to this accelerator is ongoing and should be available on next release.

Best regards

Jocelyn

RCost.1
RCost.1Author
Associate
December 3, 2021
Hi Jocelyn,
Is there a schedule for the release or can I be notified when the release happens?
Thanks,
Rui