STATUS_ERROR on CSEC_DRV_LoadPlainKey

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

STATUS_ERROR on CSEC_DRV_LoadPlainKey

1,732 次查看
jmanchado
Contributor I

I am debugging the example csec_keyconfig_s32k116 to understand how CSEc and AES 128 encryption works.
But I am seeing that CSEC_DRV_LoadPlainKey() function always returns STATUS_ERROR.
Regardless of whether it is call by setAuthKey(), loadKey() or eraseKeys().
 
And I can never get to the code section where the CSEC_DRV_EncryptECB() function is used to understand it.

 

The only part of the example code I have modified is the define to erase the keys. Could someone guide me on what is happening?

 

Thanks in advance

标签 (1)
标记 (1)
2 回复数

1,666 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Juan,

did you follow sections 13.4.29 and 13.4.30 in this manual?

c:\NXP\S32DS_ARM_v2.2\S32DS\software\S32SDK_S32K1xx_RTM_3.0.0\doc\S32SDK_S32K116_UserManual.pdf

pastedImage_1.png

Did you run this example too?

Regards,

Lukas

1,666 次查看
jmanchado
Contributor I

Thanks lukaszadrapa‌, Now I have the example working,

Regards

0 项奖励
回复