2062808_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2062808_en-US

2062808_en-US

why RSA RsaPkcs1v15VerSrv take too long time

When I use RsaPkcs1v15VerSrv(HSE_HASH_ALGO_SHA2_512) to check 64K code, it take 500ms(response is OK), but I would like to use it to do security-boot, it can't be accept now,

does there configuration should i do?

My configuration:

PLL = 80MHz,HW firmware HSE_FW_S32K344_0_2_55_0


The data sheet says that RSA only need 16ms

zhurui_0-1742195257180.png

Hash less 1.6ms

zhurui_2-1742196142530.png



Re: why RSA RsaPkcs1v15VerSrv take too long time

There's no HW support in the device, so it can't be solved by different firmware.

Re: why RSA RsaPkcs1v15VerSrv take too long time

You are right, I change the hash to SHA-256, time is OK, so S32K3 hardware can support "HW accelerated version",  or another firmware?

We use  standard HSE Firmware.

Re: why RSA RsaPkcs1v15VerSrv take too long time

Hi @zhurui 

Here's the reason:

image.pngThere's only SW support for SHA512, so it can take pretty long time. To speed it up, it would be necessary to use HW accelerated version of the hash.

Regards,

Lukas


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:03 PM
Updated by: