"HSE_SRV_RSP_GENERAL_ERROR" when request RSAES PKCSv1.5 encryption with RSA public key in RAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

"HSE_SRV_RSP_GENERAL_ERROR" when request RSAES PKCSv1.5 encryption with RSA public key in RAM

跳至解决方案
991 次查看
AquariusXo
Contributor II

Hi Team

 

I tried request an RSA encryption action on HSE_B module in S32K312. But response an Error code from MU

Some details as below:

  • Ver of HSE: HSE_0_2_1_0
  • Algorithm: RSAES PKCSv1.5
  • RSA public key stored in RAM and imported before request encryption.
  • Data wait for encrypt is a HASH which calculated by SHA256.

AquariusXo_0-1705052798750.png

Any hint to this error code?

Thank you.

 

 

0 项奖励
回复
1 解答
956 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hello @AquariusXo,

There are some potentials that can cause the HSE_SRV_RSP_GENERAL_ERROR as:

1. Use wrong key slot.
2. Use key has size is bigger than "Max key length in bits" of key slot.
 
Best regards,
Dan

在原帖中查看解决方案

0 项奖励
回复
3 回复数
684 次查看
AquariusXo
Contributor II

Thank you @DanNguyenDuy , the cipher method refer to a RAM key slot and the issue is gone when we re-provide the RAM key.

957 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hello @AquariusXo,

There are some potentials that can cause the HSE_SRV_RSP_GENERAL_ERROR as:

1. Use wrong key slot.
2. Use key has size is bigger than "Max key length in bits" of key slot.
 
Best regards,
Dan
0 项奖励
回复
988 次查看
AquariusXo
Contributor II

The Crypto driver is taken from MCAL package with version "nxp_S32K3xx-2.0.1_Aut03"

0 项奖励
回复