How to use a black key to encrypt/decrypt?

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

How to use a black key to encrypt/decrypt?

2,321 Views
jérômepouiller
Contributor III

sm_test.c shows how to manage black keys. However, source code says:

The module does not show the use of key objects as working key register source material at this time.

And indeed, I didn't find any example to use a black key to encrypt or decrypt. Does someone has an example for that?

BR,

Labels (2)
Tags (2)
4 Replies

1,986 Views
jérômepouiller
Contributor III

This link seems to solve my problem. :smileyhappy:

However, there is something I don't understand. Once a key is loaded/imported to keystore, it should be possible to use it from a job to encrypt/decrypt data, no? Or I missed something?

0 Kudos
Reply

1,985 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Yes, please refer to the Security Manual(s) for more details. 

Regards,

Yuri.

0 Kudos
Reply

1,986 Views
Yuri
NXP Employee
NXP Employee

Hello,

  the following may be helpful:

https://community.nxp.com/docs/DOC-335353 


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,985 Views
marius_grigoras
NXP Employee
NXP Employee

Hi Yuri,

The above example is for a red key blob and not a black key blob.

Thank you,

Marius