CST tool generate bin.csf file size

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

CST tool generate bin.csf file size

Jump to solution
1,416 Views
Casper
Contributor II

Hi 

I'm using the CST tool to encrypt the image and trying to use the HAB API to decrypt that

However, I found the CST tool needs to reference the CSF file.

 

The CSF file describes the SRK information and certificate.

but when I run the CST tool to generate csf.bin. The size is around 7K always.

Is there any idea to reduce the bin.csf file size?

Thank you.

Casper_0-1694149296701.png

 

0 Kudos
Reply
1 Solution
1,317 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

  Yes, of course.

   Please refer to my doc:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1050-HAB-Encrypted-Image-Generation-and-Analys...

  It include how to generate it.

 

Best Regards,

Kerry

View solution in original post

0 Kudos
Reply
8 Replies
1,332 Views
Casper
Contributor II

Hi @kerryzhou ,

Thanks for the reply.

It's good news for me that the csf file could be reduced to 4K.

 

I'm using i.MX RT1050

Thank you.

 

0 Kudos
Reply
1,325 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

   You are welcome!

   I also attach my generated file.

    If you still have question about it, just kindly let me know.

    If your question is solved, please help to mark the correct answer, just to close this case.

   Any new issues, welcome to create the new case.

Best Regards,

Kerry

 

0 Kudos
Reply
1,320 Views
Casper
Contributor II

Hi @kerryzhou ,

Thanks for the csf.bin provided.

May I know how you generate the csf.bin?

Thank you.

 

As far as I know, the csf data should include the SRK and other information below 

Casper_0-1694583439264.png

 

 

0 Kudos
Reply
1,318 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

  Yes, of course.

   Please refer to my doc:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1050-HAB-Encrypted-Image-Generation-and-Analys...

  It include how to generate it.

 

Best Regards,

Kerry

0 Kudos
Reply
1,147 Views
Casper
Contributor II

I found the root cause was the SRK file.

The SRK bin size will affect the generated csf.bin size. 

1,284 Views
Casper
Contributor II

Hi @kerryzhou,

Thanks for the details information provided.

I will follow the document. once the CSF.bin is successfully generated and the size around 4K will be closed.

Thank you.

0 Kudos
Reply
1,251 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

  You are welcome!

  If you meet any issues, also kindly let me know.

 

Best Regards,

Kerry

0 Kudos
Reply
1,358 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

  Please tell me which RT chip you are using now?

  I have tested the RT1050 HAB function previously, the generated csf.bin is just 4KB.

kerryzhou_0-1694400359783.png

 

  So, please let me know your used RT chip at first, thanks.

Best Regards,

Kerry

0 Kudos
Reply