STATUS_ERROR on CSEC_DRV_LoadPlainKey

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

STATUS_ERROR on CSEC_DRV_LoadPlainKey

1,006 Views
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

Labels (1)
Tags (1)
2 Replies

940 Views
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

940 Views
jmanchado
Contributor I

Thanks lukaszadrapa‌, Now I have the example working,

Regards

0 Kudos