04-27-2023
02:05 AM
2,879 Views
IAussman
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear NXP community,
I'm currently trying to import ECC public key into HSE FW.
OpenSSL has generated the private and public key with ".pem" extension.
So my question is, how to convert this pem file into something that could be used for key import.
Thank you for your support.
Best regards,
Solved! Go to Solution.
1 Solution
05-04-2023
10:49 AM
2,786 Views


NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
5 Replies
04-27-2023
09:57 PM
2,848 Views


NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
05-04-2023
01:31 AM
2,797 Views
IAussman
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lukaszadrapa ,
Is there any reason why the first byte of the ECC public key has been removed in the code source ?
Thank you.
Best regards,
05-04-2023
10:49 AM
2,787 Views


NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
05-03-2023
02:20 AM
2,826 Views
IAussman
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lukaszadrapa ,
Thank you for your rapid response. I've followed the instructions for generating the ECC key.
HSE FW reference manual says that we have to format the key catalog prior to any key provisioning. By doing so (format catalog), I got an error saying "operation is not allowed". In my code source LC= CUST_DEL, so I should have super user rights.
If I bypass the catalog formating, I'm also getting the same error on the key import (NOT_ALLOWED).
Do you have any suggestions ? Thank you.
Below the code:
Crypto_Init(NULL_PTR);
RetVal = Crypto_Exts_FormatKeyCatalogs();
Crypto_KeyElementSet(CryptoConf_CryptoKey_ECC_PublicKey, /* CryptoKeyId */
CryptoConf_CryptoKeyElement_CryptoKeyElement_ECC_Public, /* KeyElementId */
SEC_au8Ecc256PubKey, /*Ecc public key address */
ECC_PUB_KEY_SZ /* Ecc public key size */);
Thank you for your rapid response. I've followed the instructions for generating the ECC key.
HSE FW reference manual says that we have to format the key catalog prior to any key provisioning. By doing so (format catalog), I got an error saying "operation is not allowed". In my code source LC= CUST_DEL, so I should have super user rights.
If I bypass the catalog formating, I'm also getting the same error on the key import (NOT_ALLOWED).
Do you have any suggestions ? Thank you.
Below the code:
Crypto_Init(NULL_PTR);
RetVal = Crypto_Exts_FormatKeyCatalogs();
Crypto_KeyElementSet(CryptoConf_CryptoKey_ECC_PublicKey, /* CryptoKeyId */
CryptoConf_CryptoKeyElement_CryptoKeyElement_ECC_Public, /* KeyElementId */
SEC_au8Ecc256PubKey, /*Ecc public key address */
ECC_PUB_KEY_SZ /* Ecc public key size */);
Reply
05-03-2023
07:52 AM
2,806 Views
IAussman
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved by setting Key_Owner to OWNER_CUST for NvmKeyCatalog, and Key Owner to OWNER_ANY for RamKeyCatalog.
Best regards,
Best regards,
Reply
