[Security] CSEC with keys

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Security] CSEC with keys

Jump to solution
977 Views
Gideon
Contributor III

Dear NXPs:

IC:S32K142

I need to determine whether there is a key in NVM in a scenario, and I hope to get such judgment from the register, rather than the software recording the flag itself. How can I know from the CSEc register that the key has been imported?

0 Kudos
Reply
1 Solution
955 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

CSEc does not provide information if a key is loaded or not. It's up to user to do the tracking of keys.

The only indirect way I can see: try to use a key. If a key is not loaded yet, you should get ERC_KEY_EMPTY error.

Regards,

Lukas

View solution in original post

0 Kudos
Reply
1 Reply
956 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Gideon 

CSEc does not provide information if a key is loaded or not. It's up to user to do the tracking of keys.

The only indirect way I can see: try to use a key. If a key is not loaded yet, you should get ERC_KEY_EMPTY error.

Regards,

Lukas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1913814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BSecurity%5D%20CSEC%20with%20keys%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1913814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXPs%3A%3C%2FP%3E%3CP%3EIC%3AS32K142%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20need%20to%20determine%20whether%20there%20is%20a%20key%20in%20NVM%20in%20a%20scenario%2C%20and%20I%20hope%20to%20get%20such%20judgment%20from%20the%20register%2C%20rather%20than%20the%20software%20recording%20the%20flag%20itself.%20How%20can%20I%20know%20from%20the%20CSEc%20register%20that%20the%20key%20has%20been%20imported%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1915796%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BSecurity%5D%20CSEC%20with%20keys%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1915796%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218898%22%20target%3D%22_blank%22%3E%40Gideon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECSEc%20does%20not%20provide%20information%20if%20a%20key%20is%20loaded%20or%20not.%20It's%20up%20to%20user%20to%20do%20the%20tracking%20of%20keys.%3C%2FP%3E%0A%3CP%3EThe%20only%20indirect%20way%20I%20can%20see%3A%20try%20to%20use%20a%20key.%20If%20a%20key%20is%20not%20loaded%20yet%2C%20you%20should%20get%20ERC_KEY_EMPTY%20error.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E