CST tool generate bin.csf file size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CST tool generate bin.csf file size

跳至解决方案
3,837 次查看
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 项奖励
回复
1 解答
3,738 次查看
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 项奖励
回复
8 回复数
3,753 次查看
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 项奖励
回复
3,744 次查看
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 项奖励
回复
3,739 次查看
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 项奖励
回复
3,739 次查看
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 项奖励
回复
3,566 次查看
Casper
Contributor II

I found the root cause was the SRK file.

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

3,703 次查看
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 项奖励
回复
3,670 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Casper ,

  You are welcome!

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

 

Best Regards,

Kerry

0 项奖励
回复
3,777 次查看
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 项奖励
回复