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