KEK to wrap asymmetric keys

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

KEK to wrap asymmetric keys

989 Views
todd_nuzum
NXP Employee
NXP Employee

There's some indication that a customer can use a KEK to wrap keys

I "inject" into the SE05x keystore. Unfortunately, injecting keys into the part is non-compliant for this customer. Instead, can they use a KEK to wrap asymmetric keys that they generate on the SE05x using the sss_key_store_generate_key() API?

0 Kudos
7 Replies

970 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @todd_nuzum ,

 

KEK is just available when you write SymmKey , but to cover all the secure objects injection, you may use the external import method, as mentioned by @msjcard .  We have a demo to demonstrate how to prepare a complete raw APDU for that purpose, please kindly refer to simw-top/doc/demos/se05x/se05x_ImportExternalObjectPrepare/Readme.html for details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

 

 

0 Kudos

965 Views
TonyMo
Contributor I
Is it possible to use an AES128 KEK to wrap RSA keys generated within the SE? I'm not allowed to generate the RSA keys outside of the SE and then import them into the SE.
0 Kudos

952 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @TonyMo ,

 

KEK is not a valid option for WriteRSAKey APDU command, for such use case, you have to use the external import mechanism, please kindly refer to "3.2.9 Secure Object external import" in https://www.nxp.com/webapp/Download?colCode=AN12543 for details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
------------------------------------------------------------------------------- 

0 Kudos

949 Views
TonyMo
Contributor I
Unfortunately "3.2.9 Secure Object External Import" does not satisfy design requirements for me. The secure object must be generated inside of the security entity. Thank you for answering my question.
0 Kudos

928 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @TonyMo ,

 

SE050 has an APDU command to generate RSA key pair inside, but there is no KEK option, which is for symmetric keys indeed, while you may set up the policy for the RSA key pair, so that only the specific user may access this secure object and of course the private kay can not be fetched by any means. You may refer to  "4.7.1.2 WriteRSAKey" and "3.7 Policies" in AN12543 for more details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

925 Views
TonyMo
Contributor I
This is excellent information. This should satisfy my design requirement. Thank you for your help Kan.

Cheers,
Tony
0 Kudos

977 Views
msjcard
Contributor III

I'd take a look at AN12413, Figure 5 and section 3.2.9.  I'm not sure which middleware calls implement that diagram, but it looks like it is certainly possible to upload a key securely.

0 Kudos