<?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: Converting a CAAM key generated with caam_tk driver into a black key/black blob in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768563#M216833</link>
    <description>&lt;P&gt;Or even "just read it". If somehow the old key can still be read into keyctl (the old method does not seems to work anymore) that would be more than enough.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 00:06:54 GMT</pubDate>
    <dc:creator>lisandropm</dc:creator>
    <dc:date>2023-12-05T00:06:54Z</dc:date>
    <item>
      <title>Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1551999#M197429</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we are migrating our old firmware based on Linux Kernel 4.14 to 5.15. As it can be seen in the AN12714 rev 0 and AN12714 rev 2 notes, the way how to generate keys with/for the CAAM has changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 4.14 way was something like&lt;/P&gt;&lt;PRE&gt;keyctl add caam_tk seckey "new ecb 16" @s&lt;/PRE&gt;&lt;P&gt;which generated a key in the format&lt;/P&gt;&lt;PRE&gt;:hex:85c121ef4834be7621c86fa6d3db638cee5dc4efaad8a0240f64bf8...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 5.15 you are now using&lt;/P&gt;&lt;PRE&gt;caam-keygen create randomkey ecb -s 16&lt;/PRE&gt;&lt;P&gt;which generates two binary files: &lt;STRONG&gt;key&lt;/STRONG&gt; +&lt;STRONG&gt; key.bb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I tested it, you cannot load the "old" key with &lt;STRONG&gt;keyctl&lt;/STRONG&gt; running on the new kernel, due to missing caam_tk drivers.&lt;/P&gt;&lt;P&gt;So how should this be dealt with?&lt;BR /&gt;Can I implement the caam_tk driver in the new firmware with kernel 5.15?&lt;BR /&gt;Can I convert the old key into the binary format?&lt;BR /&gt;Is there another way of loading the old key in the new firmware?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;BR /&gt;Thanks, Benjamin&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 13:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1551999#M197429</guid>
      <dc:creator>BenjaminPiepiora</dc:creator>
      <dc:date>2022-11-10T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1556299#M197697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208654"&gt;@BenjaminPiepiora&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's a known issue that they are not compatible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you try to generate it in new BSP?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 07:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1556299#M197697</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2022-11-18T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768519#M216830</link>
      <description>&lt;P&gt;Hi! Same problem here, and no, we can't regenerate it. We need a way to convert the old black blob to the new format&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 22:08:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768519#M216830</guid>
      <dc:creator>lisandropm</dc:creator>
      <dc:date>2023-12-04T22:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768563#M216833</link>
      <description>&lt;P&gt;Or even "just read it". If somehow the old key can still be read into keyctl (the old method does not seems to work anymore) that would be more than enough.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 00:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768563#M216833</guid>
      <dc:creator>lisandropm</dc:creator>
      <dc:date>2023-12-05T00:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768927#M216878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206321"&gt;@lisandropm&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;we solved this issue in another way:&lt;/P&gt;&lt;P&gt;1. We start the old system and mount the encrypted partition with the old key (keyctl).&lt;/P&gt;&lt;P&gt;2. We create a encrypted container on an unencrypted partition and copy all relevant data to the container.&lt;/P&gt;&lt;P&gt;3. We update the device, start it and overwrite the existing&amp;nbsp;encrypted partition with a new key (caam-keygen).&lt;/P&gt;&lt;P&gt;4. We copy all data from the container to the new encrypted partition&lt;/P&gt;&lt;P&gt;This process has some drawbacks, esp. when you don't have enough space. But it seems to be a save way to transition from the old keyctl to the new caam-keygen.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 09:31:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1768927#M216878</guid>
      <dc:creator>BenjaminPiepiora</dc:creator>
      <dc:date>2023-12-05T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a CAAM key generated with caam_tk driver into a black key/black blob</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1769045#M216887</link>
      <description>&lt;P&gt;Thanks! Sadly that's what we are trying to avoid, we have a HUGE space issue.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Converting-a-CAAM-key-generated-with-caam-tk-driver-into-a-black/m-p/1769045#M216887</guid>
      <dc:creator>lisandropm</dc:creator>
      <dc:date>2023-12-05T12:40:31Z</dc:date>
    </item>
  </channel>
</rss>

