<?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 Re: iMX6SoloX - fast authentication - uImage signing. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628124#M95353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should I report this through support request ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 12:20:13 GMT</pubDate>
    <dc:creator>arkadiuszkaras</dc:creator>
    <dc:date>2017-03-29T12:20:13Z</dc:date>
    <item>
      <title>iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628120#M95349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O have a question regarding secure boot on iMX6SoloX processor, in fast authentication mode.&lt;/P&gt;&lt;P&gt;I have manage to boot successfully signed u-boot image in fast authentication mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have generated 4 SRK keys for HAB, as described in MX6UL HAB (High Assurance Boot) &lt;SPAN style="background-color: white; background-repeat: initial; background-size: initial; background-clip: initial; background-attachment: initial; font-size: small; font-family: Arial,sans-serif; background-image: initial; background-origin: initial; background-position: initial;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="" href="https://community.nxp.com/docs/DOC-275249" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.nxp.com/docs/DOC-275249&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For signing u-boot I use following file:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#Illustrative Command Sequence File Description
[Header]
Version = 4.1
Hash Algorithm = sha256
Engine = ANY
Certificate Format = X509
Signature Format = CMS

[Install SRK]
File = "crts/SRK_1_2_3_4_table.bin"
Source index = 0

[Install NOCAK]
File = "crts/SRK1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Unlock]
Engine = CAAM
Features = RNG

[Authenticate Data]
# Key slot index 0 used to authenticate the image data
Verification index = 0
Blocks = 0x8bfff7d0 0x00000000 0x00058000 "u-boot-pad.imx"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want also to check signature for uImage, but I want to use different key for that. &lt;/P&gt;&lt;P&gt;I tried with following configuration first:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[Header]
Version = 4.1
Hash Algorithm = sha256
Engine = ANY
Certificate Format = X509
Signature Format = CMS

[Install SRK]
File = "crts/SRK_1_2_3_4_table.bin"
Source index = 0

[Install NOCAK]
File = "crts/SRK1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Unlock]
Engine = CAAM
Features = RNG

[Authenticate Data]
Verification index = 0
Blocks = 0x80810000 0x0 0x385020 "uImage.pad.ivt"
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It works properly with "SRK1_sha256_2048_65537_v3_usr_crt.pem" key, but if I try to use different certificate (i.e. SRK2_sha256_2048_65537_v3_usr_crt.pem) I always got signature check failure.&lt;/P&gt;&lt;P&gt;So my question is - is it possible to sign uImage with different key than u-boot in case of fast authentication mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arek Karaś&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 06:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628120#M95349</guid>
      <dc:creator>arkadiuszkaras</dc:creator>
      <dc:date>2017-03-29T06:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628121#M95350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried with &lt;STRONG&gt;Source Index = 1 (for SRK2)&lt;/STRONG&gt;? I think this is the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:17:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628121#M95350</guid>
      <dc:creator>satyadamarla</dc:creator>
      <dc:date>2017-03-29T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628122#M95351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it already, it does not work, here are logs from u-boot:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Authenticate image from DDR location 0x80810000...

ivt_offset = 0x385000, ivt addr = 0x80b95000
Dumping IVT
80b95000: 412000d1 80810000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; .. A............
80b95010: 00000000 80b95000 80b95020 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; .....P.. P......
Dumping CSF Header
80b95020: 413800d4 000c00be 00011703 38000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ..8A...........8
80b95030: 000c00ca 0000c501 c8070000 1d0800b2&amp;nbsp;&amp;nbsp;&amp;nbsp; ................
80b95040: 02000000 001400ca 0000c500 c8090000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................
80b95050: 00008180 20503800 404004d7 210f01e1&amp;nbsp;&amp;nbsp;&amp;nbsp; .....8P ..@@...!

Secure boot enabled

HAB Configuration: 0xcc, HAB State: 0x99
No HAB Events Found!


Calling authenticate_image in ROM
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ivt_offset = 0x385000
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start = 0x80810000
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bytes = 0x387020

Secure boot enabled

HAB Configuration: 0xcc, HAB State: 0x99

--------- HAB Event 1 -----------------
event data:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xdb 0x00 0x14 0x41 0x33 0x0f 0xc0 0x00
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xbe 0x00 0x0c 0x00 0x03 0x17 0x01 0x00
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00 0x00 0x00 0x38
Authenticate uImage Fail, Please check

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628122#M95351</guid>
      <dc:creator>arkadiuszkaras</dc:creator>
      <dc:date>2017-03-29T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628123#M95352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to analyse the error: SRCE - Status Reason Context Engine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x33 - HAB_FAILURE&lt;/P&gt;&lt;P&gt;0x0F - Invalid Index&lt;/P&gt;&lt;P&gt;0xC0 - CSF or DCD problem. I think it is CSF here&lt;/P&gt;&lt;P&gt;0x00 - Any Engine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I can only imagine a Index Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"src is the source key index within the Super-Root Key Table (with 0 denoting the first key in the table)," (Pg 31, HAB4_API.pdf). This should indicate which SRK has to be used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I dont have time to check fast authentication.&lt;/P&gt;&lt;P&gt;Anyway Good Luck,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 12:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628123#M95352</guid>
      <dc:creator>satyadamarla</dc:creator>
      <dc:date>2017-03-29T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628124#M95353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should I report this through support request ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 12:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628124#M95353</guid>
      <dc:creator>arkadiuszkaras</dc:creator>
      <dc:date>2017-03-29T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628125#M95354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouls suggest you to wait for a day or two and then perhaps do that. There are people like Yuri and Igor who usually reply. They are the experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I hope your Verfication Index &amp;nbsp;is always 0 (zero) for Fast Authentication in spite of your Source index which should be the SRK key you want to use. 0 indicates SRK based authentication, 1 for CSF and 2 for Image key.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 12:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628125#M95354</guid>
      <dc:creator>satyadamarla</dc:creator>
      <dc:date>2017-03-29T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628126#M95355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for answer.&lt;/P&gt;&lt;P&gt;Yes, verification index is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 12:55:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628126#M95355</guid>
      <dc:creator>arkadiuszkaras</dc:creator>
      <dc:date>2017-03-29T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628127#M95356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please create a technical case regarding to HAB issues.&lt;BR /&gt;Please refer this document regarding to case creation:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/381898"&gt;https://community.nxp.com/thread/381898&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 05:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/628127#M95356</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2017-04-03T05:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SoloX - fast authentication - uImage signing.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/1588902#M200714</link>
      <description>&lt;P&gt;Do you have a solution to this? I have the same problem with an i.MX8MM and HAB fast authentication enabled.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:51:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SoloX-fast-authentication-uImage-signing/m-p/1588902#M200714</guid>
      <dc:creator>linderpi</dc:creator>
      <dc:date>2023-01-27T13:51:17Z</dc:date>
    </item>
  </channel>
</rss>

