why RSA RsaPkcs1v15VerSrv take too long time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

why RSA RsaPkcs1v15VerSrv take too long time

ソリューションへジャンプ
878件の閲覧回数
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

 

 

タグ(2)
0 件の賞賛
返信
1 解決策
861件の閲覧回数
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 件の賞賛
返信
3 返答(返信)
857件の閲覧回数
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 件の賞賛
返信
851件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
862件の閲覧回数
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 件の賞賛
返信