<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Code Signing Tool Generates Small Image in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1235988#M169974</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Code Signal Tool and i have followed the process on the User Guide and some other reference documents, but the image that the CST is generating is smaller than the original image that i am trying to sign and when analyzing the signed-image it only contains the sign data but no the data of the original image.&lt;/P&gt;&lt;P&gt;i am using fast authentication and below is the .csf file contents:&lt;/P&gt;&lt;P&gt;[Header]&lt;BR /&gt;Version = 4.1&lt;BR /&gt;Hash Algorithm = sha256&lt;BR /&gt;Engine = ANY&lt;BR /&gt;Engine Configuration = 0&lt;BR /&gt;Certificate Format = X509&lt;BR /&gt;Signature Format = CMS&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;File = "../crts/SRK_1_table.bin"&lt;BR /&gt;Source index = 0&lt;/P&gt;&lt;P&gt;[Install NOCAK]&lt;BR /&gt;file = "../crts/SRK1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;BR /&gt;#nothing&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 0&lt;BR /&gt;Blocks = 0x1800d00 0x000 0x7118 "/home/xxxx/boot.bin"&lt;/P&gt;&lt;P&gt;i am not clear about the data for blocks but the first parameter&amp;nbsp;"0x1800d00" i am using the address where my boot.bin is located on the board.&lt;/P&gt;&lt;P&gt;the second parameter which is "0x000"&amp;nbsp; i am trying to set the sign data at the beginning after that i am hopping to see the data on the original boot.bin.&lt;/P&gt;&lt;P&gt;the third parameter "0x7118" i am putting there the original image size (size of boot.bin).&lt;/P&gt;&lt;P&gt;Fourth parameter is the path where the original image to be signed is placed.&lt;/P&gt;&lt;P&gt;Why the generated signed image does not contains the data from the original boot.bin? Can someone clarify me what i am not understanding on the process or any other step needed to have my complete signed image?&lt;/P&gt;&lt;P&gt;Do I need to merge my original boot.bin with the binary CSF generated by my self?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 18:56:05 GMT</pubDate>
    <dc:creator>mtapia88</dc:creator>
    <dc:date>2021-02-24T18:56:05Z</dc:date>
    <item>
      <title>Code Signing Tool Generates Small Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1235988#M169974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Code Signal Tool and i have followed the process on the User Guide and some other reference documents, but the image that the CST is generating is smaller than the original image that i am trying to sign and when analyzing the signed-image it only contains the sign data but no the data of the original image.&lt;/P&gt;&lt;P&gt;i am using fast authentication and below is the .csf file contents:&lt;/P&gt;&lt;P&gt;[Header]&lt;BR /&gt;Version = 4.1&lt;BR /&gt;Hash Algorithm = sha256&lt;BR /&gt;Engine = ANY&lt;BR /&gt;Engine Configuration = 0&lt;BR /&gt;Certificate Format = X509&lt;BR /&gt;Signature Format = CMS&lt;/P&gt;&lt;P&gt;[Install SRK]&lt;BR /&gt;File = "../crts/SRK_1_table.bin"&lt;BR /&gt;Source index = 0&lt;/P&gt;&lt;P&gt;[Install NOCAK]&lt;BR /&gt;file = "../crts/SRK1_sha256_2048_65537_v3_usr_crt.pem"&lt;/P&gt;&lt;P&gt;[Authenticate CSF]&lt;BR /&gt;#nothing&lt;/P&gt;&lt;P&gt;[Authenticate Data]&lt;BR /&gt;Verification index = 0&lt;BR /&gt;Blocks = 0x1800d00 0x000 0x7118 "/home/xxxx/boot.bin"&lt;/P&gt;&lt;P&gt;i am not clear about the data for blocks but the first parameter&amp;nbsp;"0x1800d00" i am using the address where my boot.bin is located on the board.&lt;/P&gt;&lt;P&gt;the second parameter which is "0x000"&amp;nbsp; i am trying to set the sign data at the beginning after that i am hopping to see the data on the original boot.bin.&lt;/P&gt;&lt;P&gt;the third parameter "0x7118" i am putting there the original image size (size of boot.bin).&lt;/P&gt;&lt;P&gt;Fourth parameter is the path where the original image to be signed is placed.&lt;/P&gt;&lt;P&gt;Why the generated signed image does not contains the data from the original boot.bin? Can someone clarify me what i am not understanding on the process or any other step needed to have my complete signed image?&lt;/P&gt;&lt;P&gt;Do I need to merge my original boot.bin with the binary CSF generated by my self?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 18:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1235988#M169974</guid>
      <dc:creator>mtapia88</dc:creator>
      <dc:date>2021-02-24T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code Signing Tool Generates Small Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236335#M170003</link>
      <description>&lt;P&gt;Hi mtapia88&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what processor used in the case. One can try to follow tutorial :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://boundarydevices.com/high-assurance-boot-hab-dummies/" target="_blank"&gt;https://boundarydevices.com/high-assurance-boot-hab-dummies/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Image layout is described in sect.4 Image layout AN4581&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4581.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4581.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 05:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236335#M170003</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-02-25T05:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Signing Tool Generates Small Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236735#M170023</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;thanks for your answer, i am using LS1028A according the tutorial it seems that the CSF tool does not generate i complete signed image, i need to concatenate both images to have a complete signed image.&lt;/P&gt;&lt;P&gt;i have another question, if i use fast authentication with NO encryption, and i have stored on the SRK fuse register the values on SRK_fuse.bin but i am not sure about the OTPMK, is the OTPMK needed? in case it is needed where can i find it? i read on the tutorial that it is a random value, so i just need to generate a random values from my self and store them there?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 17:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236735#M170023</guid>
      <dc:creator>mtapia88</dc:creator>
      <dc:date>2021-02-25T17:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Code Signing Tool Generates Small Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236920#M170034</link>
      <description>&lt;P&gt;Hi mtapia88&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for LS1028A seems it is necessary to post on appropriate for that processor&lt;/P&gt;
&lt;P&gt;Layerscape Processors forum, as here supported i.MX processors:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Layerscape/bd-p/Layerscape" target="_blank"&gt;https://community.nxp.com/t5/Layerscape/bd-p/Layerscape&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 01:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Code-Signing-Tool-Generates-Small-Image/m-p/1236920#M170034</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-02-26T01:25:43Z</dc:date>
    </item>
  </channel>
</rss>

