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
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
Did you run this example too?
Regards,
Lukas
Thanks lukaszadrapa, Now I have the example working,
Regards