I traced it through to the call to "hashcrypt_check_need_key" in fsl_hashcrypt.c. In that function, it times out waiting for the NEEDKEY to be reset. Any idea why this is happening? What initialization is needed so that OTP key can be used in the Hashcrypt engine?
The software_key works just fine.
Here is the console output.
AES ECB, CBC, CTR testing using key loaded via software
AES ECB Test - 128-bit key loaded via software - pass
AES CBC Test - 128-bit key loaded via software - pass
AES CTR Test - 128-bit key loaded via software - pass
AES ECB, CBC, CTR testing using OTP key (via OTP shadow registers)
If OTP shadow register 107 (KEY_SCRAMBLE_SEED) is 0,
OTP shadow registers 119-112 (OTP_MASTER_KEY) function
as a test key for the AES engine
ECB error
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I just run the evkmimxrt685_otp_key in MCUXpresso and it works well actually.
Below is the testing result and you can find the demo code in the attachment.
AES ECB, CBC, CTR testing using OTP key (via OTP shadow registers)
If OTP shadow register 107 (KEY_SCRAMBLE_SEED) is 0,
OTP shadow registers 119-112 (OTP_MASTER_KEY) function
as a test key for the AES engine
AES ECB Test - 192-bit OTP key - pass
AES CBC Test - 192-bit OTP key - pass
AES CTR Test - 256-bit OTP key - pass
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------