<?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>i.MX Processors中的主题 Re: iMX6 - 256-bit Zeroizable Master Key</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819131#M126181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using sm_test.c(&lt;A href="https://github.com/Freescale/linux-fslc/blob/4.1-2.0.x-imx/drivers/crypto/caam/sm_test.c"&gt;crypto/caam/sm_test.c&lt;/A&gt;) driver to try retrieve the OTP Master Key, but this driver&amp;nbsp;actually has 4 keys(64 bits, 128 bits, 192 bits and 256 bits) with 2 groups: clear keys and black keys. The clear keys does not matter because is just a&amp;nbsp;progression (0, 1, 2, 3, 4, ...).&amp;nbsp;The "true" random keys are the black keys, so that is what we want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that everytime I reboot the Linux, i am getting different values for the 4 keys&amp;nbsp;&lt;SPAN&gt;(64 bits, 128 bits, 192 bits and 256 bits).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 3.350716] platform caam_sm: 64-bit black key: &lt;BR /&gt;[ 3.353955] platform caam_sm: [0000] 12 e5 59 04 33 25 46 f9 &lt;BR /&gt;[ 3.358318] platform caam_sm: [0008] c8 13 e4 d3 c1 45 27 bd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And in another boot:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 3.420722] platform caam_sm: 64-bit black key: &lt;BR /&gt;[ 3.423961] platform caam_sm: [0000] 67 f5 f6 f7 5a 3b 19 14 &lt;BR /&gt;[ 3.428322] platform caam_sm: [0008] 4e f7 a7 85 66 14 44 f2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are these keys supposed to be invariable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 20:04:16 GMT</pubDate>
    <dc:creator>viniciusmaciel</dc:creator>
    <dc:date>2018-07-09T20:04:16Z</dc:date>
    <item>
      <title>iMX6 - 256-bit Zeroizable Master Key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819129#M126179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using kernel 4.9.11 running on Wandboard. How do I&amp;nbsp;read the&amp;nbsp;256-bit Zeroizable Master Key from iMX6 CPU fuse?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I read from userspace or only from kernel space? Can I get this key from the CAAM driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 00:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819129#M126179</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2018-06-27T00:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - 256-bit Zeroizable Master Key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819130#M126180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Hi Vinicius,

ZMK value (or the ZMK XORed with the OTPMK) can be selected as the&amp;nbsp; master key input to 
the DCP. Please refer to Security Reference Manual for the i.MX 6ULL Applications Processor for more details.
&amp;nbsp; The unique OTP Master Key (OTPMK) is a random value stored in the non-volatile memory &lt;/PRE&gt;&lt;PRE&gt;(typically fuses) outside the SNVS module.&amp;nbsp; OTPMK is factory preprogrammed. &lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; HAB incorporates signature verification using RSA public keys and the SHA-256 hash algorithm, but i.MX6 CAAM does not support asymmetric cryptographic acceleration..&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819130#M126180</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-07-02T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - 256-bit Zeroizable Master Key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819131#M126181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using sm_test.c(&lt;A href="https://github.com/Freescale/linux-fslc/blob/4.1-2.0.x-imx/drivers/crypto/caam/sm_test.c"&gt;crypto/caam/sm_test.c&lt;/A&gt;) driver to try retrieve the OTP Master Key, but this driver&amp;nbsp;actually has 4 keys(64 bits, 128 bits, 192 bits and 256 bits) with 2 groups: clear keys and black keys. The clear keys does not matter because is just a&amp;nbsp;progression (0, 1, 2, 3, 4, ...).&amp;nbsp;The "true" random keys are the black keys, so that is what we want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that everytime I reboot the Linux, i am getting different values for the 4 keys&amp;nbsp;&lt;SPAN&gt;(64 bits, 128 bits, 192 bits and 256 bits).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 3.350716] platform caam_sm: 64-bit black key: &lt;BR /&gt;[ 3.353955] platform caam_sm: [0000] 12 e5 59 04 33 25 46 f9 &lt;BR /&gt;[ 3.358318] platform caam_sm: [0008] c8 13 e4 d3 c1 45 27 bd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And in another boot:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 3.420722] platform caam_sm: 64-bit black key: &lt;BR /&gt;[ 3.423961] platform caam_sm: [0000] 67 f5 f6 f7 5a 3b 19 14 &lt;BR /&gt;[ 3.428322] platform caam_sm: [0008] 4e f7 a7 85 66 14 44 f2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are these keys supposed to be invariable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 20:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-256-bit-Zeroizable-Master-Key/m-p/819131#M126181</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2018-07-09T20:04:16Z</dc:date>
    </item>
  </channel>
</rss>

