S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

1,310 次查看
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 项奖励
回复
1 回复

1,297 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @Cpppy 

Please verify whether your key usage is MAC operation. 

namnguyenviet_0-1673855628607.png

Best Regards,

Nam

0 项奖励
回复