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

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

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

Jump to solution
395 Views
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 Kudos
1 Solution
360 Views
nxf78987
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

View solution in original post

0 Kudos
3 Replies
88 Views
AquariusXo
Contributor II

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

361 Views
nxf78987
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 Kudos
392 Views
AquariusXo
Contributor II

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

0 Kudos