Hi,
I want to check if keys stored in NVM are zero or not. Is it possible? The format of the keys is BIN_OCTET.
I tried it by using Crypto_Hse_KeyElementGet API, but I am getting HSE_SRV_RSP_INVALID_ADDR as a response.
Any help on this is highly appreciated!
Solved! Go to Solution.
Hi @shravani
As far as I know, you use SHE keys. SHE keys cannot be exported (only the SHE RAM key is an exception) and it's also not possible to get KeyInfo for SHE keys. In this case, the only option to check if SHE key is empty or not is to try to use such key. If it is still empty, you should get CRYPTO_E_KEY_EMPTY error.
Regards,
Lukas
Hi @shravani
As far as I know, you use SHE keys. SHE keys cannot be exported (only the SHE RAM key is an exception) and it's also not possible to get KeyInfo for SHE keys. In this case, the only option to check if SHE key is empty or not is to try to use such key. If it is still empty, you should get CRYPTO_E_KEY_EMPTY error.
Regards,
Lukas