I am trying use S32K148 Crypto driver to generate a MAC recently, when I finished Flash_Partition() and Crypto_Init() and Crypto_KeySetValid, all of them return E_OK.
But when the code run to Crypto_CseStartGenMacCmd(), it will return a error code CRYPTO_CSE_ERC_KEY_INVALID.
Who can help me see what's wrong please? The attachment is the code of S32DS project and EB project configuration. Thank you very much!