Meaning of the certificate argument to CST for encrypted boot

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

Meaning of the certificate argument to CST for encrypted boot

3,055 Views
floriandoerfler
Contributor III

Hi All

I am trying to get encrypted boot to work on an i.MX6. The sample command line (from ) to sign/encrypt an image for use with encrypted boot goes:

./cst -o csf.bin -c ./dek_rsa_key_crt.pem < u-boot_enc.csf

Can anybody tell me what the parameter "-c ./dek_rsa_key_crt.pem" does?

I assumed that it is used to protect the DEK for transport to the place where it is encrypted into a DEK blob on the target but then wondered:

- How can the target decrypt the DEK to re-encrypt it with the OTPMK?

- How do I generate the dek_rsa_key_crt.pem?

Regards

Florian

Tags (1)
0 Kudos
Reply
5 Replies

2,627 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please refer to "HAB CodeSigning Tool User’s Guide" in CST package documentation.

NXP Code Signing Tool for the High Assurance Boot library. Provides software code signing support de...

Have a great day,
Yuri

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

0 Kudos
Reply

2,627 Views
floriandoerfler
Contributor III

Hi Yuri

Thank you for the Hint. I am aware of the manual, I even printed it into a booklet ;-)

The manual states:

--cert <cert_file>:

Public key certificate filename. Required when input CSF contains Install

Secret Key command(s). Symmetric key(s) are encrypted using the public key and

saved to a filename specified in the CSF command

and:

To generate out_csf.bin from input hab4.csf and public key certificate to encrypt symmetric key(s)

cst --o out_csf.bin --cert dek_protection_crt.pem < hab4.csf

I have the following specific questions:

  • Does the target decrypt the DEK with the dek_protection_crt.pem counterpart?
    Is that counterpart embedded in the CSF?
    or stated in another way: Can I upload the resulting dek.bin directly onto the target for wrapping?
  • What are the requirements for the dek_protection_crt.pem?

Regards

Florian

0 Kudos
Reply

2,627 Views
Yuri
NXP Employee
NXP Employee

Hello,

I am not sure if encryption boot details may be dicussed here.

Please create request :

How to submit a new question for NXP Support

Regards,

Yuri.

1,762 Views
jmmorenog
Contributor I

can you answer this here pls?

0 Kudos
Reply

2,627 Views
floriandoerfler
Contributor III

Hi Yuri

OK, thank you, I will do that!

Regards Florian

0 Kudos
Reply