<?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>How to enable AES-128 Encryption engine in nrf52832 soc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64430/how-to-enable-aes-128-encryption-engine-in-nrf52832-soc</link><description>Hi Team, 
 We are using the nrf52830 SOC for our application. In data sheet mentioned that it supports AES-128 bit Hardware engines (ECB,CCM, AAR). How to enable and use these engines without using the soft libraries like &amp;quot;mbed TLS &amp;quot; and &amp;quot;Optiga&amp;quot;. 
 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Aug 2020 14:54:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64430/how-to-enable-aes-128-encryption-engine-in-nrf52832-soc" /><item><title>RE: How to enable AES-128 Encryption engine in nrf52832 soc</title><link>https://devzone.nordicsemi.com/thread/262840?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6286f62-2364-4cc1-8f3a-35e0ce1ca3f3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Srinivas,&lt;/p&gt;
[quote user="Srinivas V"]1. In reply, mentioned that AES-128 required for BTLE operation.By default BTLE is secure communication, or we need to enable this by manually.[/quote]
&lt;p&gt;The Bluetooth link will be encrypted if you use pairing/bonding. This is per the BLE specification. Most of the SDK examples use pairing (encrypted link), which is handled by the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_peer_manager.html"&gt;peer manager SDK library&lt;/a&gt;.&lt;/p&gt;
[quote user="Srinivas V"]2. But we are using the SoftDevice, along with these RNG and other Soft crypto engines(AES-ECB,ECB),Oberon.Is there any timing impact on these operations.[/quote]
&lt;p&gt;Can you elaborate? Generally, crypto operations are CPU intensive so it will take some CPU time. Note that you canuse the RNG peripheral in a way that is shared with the SoftDevice without a problem.&lt;/p&gt;
[quote user="Srinivas V"]3. &amp;quot;&lt;span&gt;ECB and RNG are restricted&amp;quot;, but how to avoid timing issues when we are using the RNG and SD operations at a time.&lt;/span&gt;[/quote]
&lt;p&gt;You have to use the SoftDevice API&amp;#39;s, or support libraries. Unless you have a strong reason for using ECB I suggest you do everything via the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_crypto.html"&gt;nrf_crypto library&lt;/a&gt;&amp;nbsp;(examples &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/crypto_examples_nrf_crypto.html"&gt;here&lt;/a&gt;). This will handle the complexities of using the RNG for you, but it does not provide a way to use the ECB peripheral. That would be done in SW, which may be most sensible in any case on the nRF52832. Note that you have proper generic HW acceleration for AES on the nRF52840 using the CryptoCell peripheral.&lt;/p&gt;
[quote user="Srinivas V"]4. Is there any alternate way to avoid these blocking conditions like EasyDMA or any other techniques we need to implement on top of these Soft Libraries.[/quote]
&lt;p&gt;For SW libraries, DMA is not an option. And regarding not conflicting with the SoftDevice, this is regardless of DMA (which is used), as the problem is that the SoftDevice must be allowed to use the peripheral when it needs it. So you cannot use it for anything else at that time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable AES-128 Encryption engine in nrf52832 soc</title><link>https://devzone.nordicsemi.com/thread/262675?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 15:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82a6dcde-bbe7-4fb9-bd8a-0061632faf51</guid><dc:creator>Srinivas V</dc:creator><description>&lt;p&gt;Hi Turbo,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;1. In reply, mentioned that AES-128 required for BTLE operation.By default BTLE is secure communication, or we need to enable this by manually.&lt;/p&gt;
&lt;p&gt;2. But we are using the SoftDevice, along with these RNG and other Soft crypto engines(AES-ECB,ECB),Oberon.Is there any timing impact on these operations.&lt;/p&gt;
&lt;p&gt;3. &amp;quot;&lt;span&gt;ECB and RNG are restricted&amp;quot;, but how to avoid timing issues when we are using the RNG and SD operations at a time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Is there any alternate way to avoid these blocking conditions like EasyDMA or any other techniques we need to implement on top of these Soft Libraries.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Srinivas.V&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable AES-128 Encryption engine in nrf52832 soc</title><link>https://devzone.nordicsemi.com/thread/262672?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 10:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b31d34f-5168-4bd3-9e7f-27932e818226</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="87768" url="~/f/nordic-q-a/64430/how-to-enable-aes-128-encryption-engine-in-nrf52832-soc"] In data sheet mentioned that it supports AES-128 bit Hardware engines (ECB,CCM, AAR)[/quote]
&lt;p&gt;The AES-128 support on the NRF52832 is the bare minimum required for BTLE operation. Not really usable for other purposes, with AES-128-CBC as an exception (but you still need to do the XORing in software).&lt;/p&gt;
&lt;p&gt;Note that CCM and AAR are blocked when using softdevice, ECB and RNG are restricted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>