S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

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

S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

608 Views
Cpppy
Contributor I

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!

0 Kudos
Reply
1 Reply

595 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @Cpppy 

Please verify whether your key usage is MAC operation. 

namnguyenviet_0-1673855628607.png

Best Regards,

Nam

0 Kudos
Reply