<?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: imx93 dm-crypt options in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx93-dm-crypt-options/m-p/2178075#M241052</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Please referencing our latest BSP release: 6.12.34_2.1.0 to see if there are any issues. First, the salt is encapsulated in a trusted blob. Second, the key is exported from the ELE to OCRAM with the salt, and is only used within the TEE.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Sep 2025 09:28:35 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2025-09-30T09:28:35Z</dc:date>
    <item>
      <title>imx93 dm-crypt options</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx93-dm-crypt-options/m-p/2175753#M240944</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are setting up dm-crypt on imx93 and have been having stability issues with the cbc-aes-tee driver, which we still hope NXP are looking at.&lt;/P&gt;&lt;P&gt;When looking at the keytypes and encryption algorithms, I tried understanding the different options. As I understand it:&lt;/P&gt;&lt;P&gt;1. Using user key and cbc-aes-ce. Key is completely unprotected and available in plain text in user space. Encryption is handled in kernel. Not a viable option.&lt;/P&gt;&lt;P&gt;2. Using TEE-backed trusted key and cbc-aes-ce. Key is protected and only available encrypted in user space. Key is unsealed in kernel by calling OP-TEE. Encryption is handled in kernel. Key is open to DRAM bus sniffing and kernel attacks.&lt;/P&gt;&lt;P&gt;3. Using user key and cbc-aes-tee. Key in keyring is completely unprotected and available in plain text in user space. However, this key is only used as a salt for the actual key derived in OP-TEE so it does not matter(?). Derived key is only ever stored in OCRAM. Encryption is handled in OP-TEE.&lt;/P&gt;&lt;P&gt;4. Using TEE-backed trusted key and cbc-aes-tee. Key is protected and only available encrypted in user space. Key is unsealed in kernel by calling OP-TEE. However, this key is still only used as a salt for the actual key derived in OP-TEE so now it is unnecessarily protected in keyring as well(?). Derived key is only ever stored in OCRAM. Encryption is handled in OP-TEE.&lt;/P&gt;&lt;P&gt;In Rev. LF6.12.3_1.0.0 of Linux User Guide a user key is used, and in Rev. LF6.12.20_2.0.0 a trusted key is used (chapter 10.5.5), that's why I started thing about the difference. Is my understanding of the options listed above correct?&lt;/P&gt;&lt;P&gt;Thinking about the security implications of option 2 versus 3 or 4 is seems the main difference is that the key might be open to DRAM sniffing attacks or kernel attacks? The on-disk storage of the key is still encrypted and secure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 10:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx93-dm-crypt-options/m-p/2175753#M240944</guid>
      <dc:creator>electro1</dc:creator>
      <dc:date>2025-09-25T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx93 dm-crypt options</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx93-dm-crypt-options/m-p/2178075#M241052</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Please referencing our latest BSP release: 6.12.34_2.1.0 to see if there are any issues. First, the salt is encapsulated in a trusted blob. Second, the key is exported from the ELE to OCRAM with the salt, and is only used within the TEE.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harvey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 09:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx93-dm-crypt-options/m-p/2178075#M241052</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-09-30T09:28:35Z</dc:date>
    </item>
  </channel>
</rss>

