RSA keys generation with Trust Zone

Hi, I’m working on a STM32L552ZEQ.
I have the RNG enabled and I’m using mbedTLS 2.16.2 (provided by STM32CubeMX IDE).
My goal is to generate a pair of RSA keys of 2048 bits using the Trust Zone.
Before start using the Trust Zone, I wrote the code to generate the RSA key pair (of 2048 bits) without the Trust Zone, and the average time for the generation is about 50 seconds (clock frequency set to 110MHZ).
After that I tried to do the same thing but this time using the Trust Zone. The configurations are the same, but with the Trust Zone enabled it takes more than 20 minutes to generate the RSA key pair.

Anyone have already encountered this problem?

1 Like