<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86788/where-is-qspi-encryption-function-and-registers-enc-key-enc-nonce-enc-enable-and-etc-in-nrf5340</link><description>Dear, 
 
 Based on the material ( https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fqspi.html ), Encryption should be enabled independently for XIP and EasyDMA, with separate keys and nonce like as shown in Figure 3. Steam Cipher. 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Apr 2022 13:51:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86788/where-is-qspi-encryption-function-and-registers-enc-key-enc-nonce-enc-enable-and-etc-in-nrf5340" /><item><title>RE: Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/thread/363638?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 13:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa5fcf65-9c65-4437-ac9e-2dad86d2c6bc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/keys/hw_unique_key/README.html"&gt; Hardware unique key sample&lt;/a&gt; uses the KMU and shows how a key can be used to derive an encryption key through psa_crypto APIs.&lt;/p&gt;
&lt;p&gt;Th&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fkmu.html"&gt;e KMU peripheral description&lt;/a&gt; should explain how it pushes key values over a dedicated secure APB to pre-configured secure locations within the memory map.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/thread/362911?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 16:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f706955e-0c20-44a9-8f99-83e4fb470723</guid><dc:creator>Jaewook</dc:creator><description>&lt;p&gt;First of all, at the beginning, I was confused with three modules such as ENC, XIP_ENC and DMA_ENC as read the spec. Now, I just figured out there are two module like XIP_ENC and DMA_ENC only while ENC should be a general concept over them.&amp;nbsp; &amp;nbsp; Now, it should be fine to me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, still, I am not sure how XIP_ENC and DMA_ENC can use KMU for the AES key.&amp;nbsp; Do you have any example on this application?&amp;nbsp; &amp;nbsp;Since CPU can&amp;#39;t access the keys stored at KMU, how firmware can&amp;nbsp;assign the keys stored at KMU&amp;nbsp;to&amp;nbsp;XIP_ENC and DMA_ENC module?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/thread/362780?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 09:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58fffc2-7241-4ebb-b426-be34c1115550</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Jae&lt;/p&gt;
&lt;p&gt;What exactly are you missing in terms of explanation of the XIP_ENC and DMA_ENC modules? I&amp;#39;m not sure what you&amp;#39;re expecting that is not mentioned in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fqspi.html&amp;amp;anchor=encryption"&gt;Encryption paragraph&lt;/a&gt; of the PS and the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/qspi/hal.html"&gt;QSPI HAL&lt;/a&gt; regarding the functions. Let me know what it is that needs further explanation and I&amp;#39;ll forward it to our documentation team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding your security concerns. AES is an encryption scheme, while KMU is a HW peripheral to store the keys somewhere the CPU can&amp;#39;t access them. I don&amp;#39;t see any reason you shouldn&amp;#39;t be able to use KMU to store the AES key in. As long as readback protection is enabled on the nRF5340, and the external flash is encrypted, I don&amp;#39;t see how &amp;quot;everyone&amp;quot; should easily hack the source code. HUK is the library to use the KMU, if there&amp;#39;s any confusion there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/thread/362660?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 17:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63d72265-39ec-4986-96e0-b79201a90c3c</guid><dc:creator>Jaewook</dc:creator><description>&lt;p&gt;As continuing, can we use HUK (hardware unique key) like&amp;nbsp;HUK_KEYSLOT_MEXT for qspi encryption?&amp;nbsp; So, CPU can&amp;#39;t access the key directly for security reason.&amp;nbsp; If so, how can we use it?&amp;nbsp; Can&amp;nbsp;&lt;span&gt;nrf_qspi_dma_encryption_configure be used with HUK?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is QSPI Encryption function and registers ((ENC.KEY, ENC.NONCE. ENC.ENABLE, and etc)) in nrf5340</title><link>https://devzone.nordicsemi.com/thread/362659?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 16:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d7082cb-a97c-41e7-b947-aad67c465f07</guid><dc:creator>Jaewook</dc:creator><description>&lt;p&gt;Updated:&amp;nbsp; I guess there is the specific Encryption module but it should be a general idea to explain XIP_ENC and DMA_ENC.&amp;nbsp; I was confused with them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BTW, if so, how to secure the AES key to setup ENC.KEY without put the key into the source code?&amp;nbsp; &amp;nbsp;For security purpose, can we use KMU instead?&amp;nbsp; If you put the AES key into source code, can everyone easily hack the source code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>