<?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: i.MX8X Secure Boot with encrypted OS container in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378322#M183671</link>
    <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I think all these docs are under NDA, sorry I can't share them, but the NXP tech support guys could also provide them to you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Arturo.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 16:55:26 GMT</pubDate>
    <dc:creator>arturobuzarra</dc:creator>
    <dc:date>2021-11-29T16:55:26Z</dc:date>
    <item>
      <title>i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1203669#M166905</link>
      <description>&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;We are using the &lt;STRONG&gt;i.MX8QXP&lt;/STRONG&gt; processor on a custom board to implement Secure Boot. After several tests we are able to build and boot successfully an U-Boot binary signed and encrypted following your Security Reference Manual. Also we are able to build a signed OS container with different binaries (Kernel, Device tree files, boot scripts, etc). However we are blocked adding the encryption to these OS containers.We are using an U-Boot based on your release &lt;STRONG&gt;rel_imx_5.4.47_2.2.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;The simplest test is to try to run a signed U-Boot script.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; We create this U-Boot script and build it with the mkimage tool. After that we signed it with the CST tool v3.3.1. The output file (in this example we called it &lt;STRONG&gt;boot.src&lt;/STRONG&gt;) contains a Container Header and after a few bytes of padding, we have the content of the U-Boot Script. In U-Boot this signed U-Boot Script is successfully authenticated by &lt;STRONG&gt;authenticate_os_container()&lt;/STRONG&gt; and we can run it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=&amp;gt; tftp 0x88280000 boot.scr
Using ethernet@5b040000 device
TFTP from server 192.168.1.1; our IP address is 192.168.42.30
Filename 'boot.scr'.
Load address: 0x88280000
Loading: #
         2.1 MiB/s
done
Bytes transferred = 11264 (2c00 hex)
=&amp;gt; auth_cntr 0x88280000                                                     
Authenticate OS container at 0x88280000
container length 888
img 0, dst 0x80280000, src 0x88282000, size 0xc00
memreg 7 0x80020000 -- 0xffffffff
   Authenticate image from DDR location 0x88280000... OK
=&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are able to check the content of the file in the address 0x88282000 and execute it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=&amp;gt; md.b 0x88282000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our next test is modify the &lt;STRONG&gt;CSF&lt;/STRONG&gt; file to add the "&lt;STRONG&gt;Install Secret Key&lt;/STRONG&gt;" section to encrypt the OS Container. After that we obtain an output file (&lt;STRONG&gt;boot.scr&lt;/STRONG&gt;) with the same Container Header but in this case the section in the &lt;STRONG&gt;Signature Block&lt;/STRONG&gt; for the &lt;STRONG&gt;Blob Offset&lt;/STRONG&gt; is set with an offset (in the test case for only signed the container this field is empty with 0x0000), this implies that this container is encrypted and we check that the content of the original U-Boot script is encrypted. We Insert the DEK Blob into this Container Signature Block in the right offset and finally we test it in our device.&lt;/P&gt;&lt;P&gt;However in this case, with the OS container signed and encrypted the authentication works fine but the original content of the U-Boot script remains encrypted after call to the &lt;STRONG&gt;authenticate_os_container()&lt;/STRONG&gt; and obviously we cannot run our U-Boot script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=&amp;gt; tftp 0x88280000  boot.scr               
Using ethernet@5b040000 device
TFTP from server 192.168.1.1; our IP address is 192.168.42.30
Filename 'boot.scr'.
Load address: 0x88280000
Loading: #
         2.1 MiB/s
done
Bytes transferred = 11264 (2c00 hex)
=&amp;gt; auth_cntr 0x88280000                                      
Authenticate OS container at 0x88280000
container length 976
img 0, dst 0x80280000, src 0x88282000, size 0xc00
memreg 7 0x80020000 -- 0xffffffff
   Authenticate image from DDR location 0x88280000... OK
=&amp;gt; md.b 0x88282000                                           
88282000: 3b a7 eb 99 45 d6 50 b1 93 53 e3 e4 b4 e8 64 05    ;...E.P..S....d.
88282010: 3d 9b 91 fd 4a 6b 1a 9f 11 c1 65 c1 b6 4a ab cc    =...Jk....e..J..
88282020: 39 91 d9 19 b6 d3 3e 64 40 8e 4e 8d 2d dc 53 11    9.....&amp;gt;d@.N.-.S.
88282030: 2b be 0c b5 19 e1 51 8c 0e e2 a1 23 97 64 79 43    +.....Q....#.dyC
88282040: ab d1 87 64 c3 5e 56 77 81 bb 3d 89 c9 87 e7 a4    ...d.^Vw..=.....
88282050: b2 c9 af 8b 4b a3 c9 ff f7 3b ce 74 3a eb b3 03    ....K....;.t:...
88282060: 95 66 3f bf 98 81 cf 5f 6f 99 d1 6b 6f 88 73 0e    .f?...._o..ko.s.
88282070: 90 c6 e6 d8 f9 65 c8 35 1c 1f b8 46 e6 58 07 14    .....e.5...F.X..
88282080: 52 4c 8d b9 e7 e2 50 56 76 76 ad 5e f3 d2 c2 ea    RL....PVvv.^....
88282090: 6c 0d bd 33 ce df 51 b8 2d 5a 20 53 2b 00 17 b7    l..3..Q.-Z S+...
882820a0: 95 e6 2e d2 75 25 73 98 37 fc 28 26 16 b6 8a f6    ....u%s.7.(&amp;amp;....
882820b0: f9 56 e1 d2 49 d2 b3 81 7c c9 0d 9c 5a 05 8e bb    .V..I...|...Z...
=&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide us some guidance about how to fix it?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Arturo&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 12:59:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1203669#M166905</guid>
      <dc:creator>arturobuzarra</dc:creator>
      <dc:date>2020-12-23T12:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1205978#M167182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After debug the code in deep, we found that the function &lt;STRONG&gt;authenticate_os_container&lt;/STRONG&gt;() copy the decrypted content to a different memory position defined in the &lt;STRONG&gt;img-&amp;gt;dst&lt;/STRONG&gt; variable (it is a different behavior than the HABv4 devices, where the decrypted content in placed in the same source position), but we are not able to find any reference about this behavior into the Security Reference Manual.&lt;/P&gt;&lt;P&gt;Also we found that this destination address is defined in the &lt;STRONG&gt;mkimage_imx8&lt;/STRONG&gt; command line, when the &lt;STRONG&gt;flash_kernel&lt;/STRONG&gt; target is called, but here also we not found any reference about this hard coded value.&lt;/P&gt;&lt;P&gt;Could you confirm this behavior?&lt;/P&gt;&lt;P&gt;Could you point us to the right place where this behavior is explained?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Arturo&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 08:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1205978#M167182</guid>
      <dc:creator>arturobuzarra</dc:creator>
      <dc:date>2021-01-04T08:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1207436#M167339</link>
      <description>&lt;P&gt;Hi Arturo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked internally about this case, they required additional details:&lt;/P&gt;
&lt;P&gt;------------------------&lt;/P&gt;
&lt;P&gt;1. Customer wants to sign and encrypt boot image, is the signed boot image successful but the encrypted image failed, right?&lt;/P&gt;
&lt;P&gt;2. Which manual they refer to do encrypted boot?&lt;/P&gt;
&lt;P&gt;For i.MX6 and i.MX7, they can refer to the AN12056.&lt;/P&gt;
&lt;P&gt;-------------------------&lt;/P&gt;
&lt;P&gt;For i.MX8X, I sent you additional document via mail.&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>Wed, 06 Jan 2021 09:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1207436#M167339</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-01-06T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378311#M183669</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Arturo,&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;For i.MX8X, I sent you additional document via mail.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is this not a publicly available document? If not, can you send it to me as well?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 16:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378311#M183669</guid>
      <dc:creator>paul_geurts</dc:creator>
      <dc:date>2021-11-29T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378322#M183671</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I think all these docs are under NDA, sorry I can't share them, but the NXP tech support guys could also provide them to you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Arturo.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 16:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378322#M183671</guid>
      <dc:creator>arturobuzarra</dc:creator>
      <dc:date>2021-11-29T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378345#M183673</link>
      <description>&lt;P&gt;Hi Arturo,&lt;/P&gt;&lt;P&gt;OK I will do that. Can you at least provide a document number for that document? Than I can do a specific request.&lt;/P&gt;&lt;P&gt;br, Paul&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378345#M183673</guid>
      <dc:creator>paul_geurts</dc:creator>
      <dc:date>2021-11-29T17:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378350#M183676</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;The document has no PN, the title is "AHAB encrypted boot on the i.MX 8QXP"&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Arturo.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 18:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1378350#M183676</guid>
      <dc:creator>arturobuzarra</dc:creator>
      <dc:date>2021-11-29T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8X Secure Boot with encrypted OS container</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1509384#M194104</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;can you share the&amp;nbsp;&lt;SPAN&gt;"AHAB encrypted boot on the i.MX 8QXP" document with us? Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 09:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8X-Secure-Boot-with-encrypted-OS-container/m-p/1509384#M194104</guid>
      <dc:creator>kanimozhi_t</dc:creator>
      <dc:date>2022-08-22T09:02:47Z</dc:date>
    </item>
  </channel>
</rss>

