why RSA RsaPkcs1v15VerSrv take too long time

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

why RSA RsaPkcs1v15VerSrv take too long time

Jump to solution
164 Views
zhurui
Contributor II

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

 

 

Tags (2)
0 Kudos
Reply
1 Solution
147 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

 

View solution in original post

0 Kudos
Reply
3 Replies
143 Views
zhurui
Contributor II

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.

0 Kudos
Reply
137 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
148 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply