<?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>nrf5340 QSPI decryption integrity check</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72766/nrf5340-qspi-decryption-integrity-check</link><description>Hi, 
 Does the nrf5340 perform any integrity checking on the QSPI on-the-fly decryption? Are there any details available on the specific algorithm used? The datasheet only says AES-128. 
 Am I correct in my understanding that secure boot is not really</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 10:49:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72766/nrf5340-qspi-decryption-integrity-check" /><item><title>RE: nrf5340 QSPI decryption integrity check</title><link>https://devzone.nordicsemi.com/thread/300071?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 10:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822136fd-25e9-49dc-8661-ee4d2ac7f3ee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The supported stream cipher mode is AES-CTR using 128 bit key size and nounce. There is no support for authenticated XIP, only encryption. If QSPI XIP is used as part of secure boot, then time-of-check, time-of-use (TOCTOU) is an attack vector. The recommend way around this limitation is to partition external code in logical blocks which do not rely on branching to other external regions in flash, and which are signed with a key only available internally. These blocks can then be fetched using QSPI to internal RAM, verified and then executed directly from RAM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope that help,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>