S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K148 Crypto Driver CRYPTO_CSE_ERC_KEY_INVALID

607件の閲覧回数
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 返信

594件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello @Cpppy 

Please verify whether your key usage is MAC operation. 

namnguyenviet_0-1673855628607.png

Best Regards,

Nam

0 件の賞賛
返信