<?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>Typo in documentation?  ECB peripheral doesn&amp;#39;t decrypt?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23364/typo-in-documentation-ecb-peripheral-doesn-t-decrypt</link><description>For the nRF51822, the documentation for ECB mentions it being used to 
 
 Encrypt/decrypt 16-byte data using
current key. 
 
 But it doesn&amp;#39;t offer any methods to decrypt, and a couple of other forums posts indicate that it only performs the forward</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 09 Jul 2017 04:30:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23364/typo-in-documentation-ecb-peripheral-doesn-t-decrypt" /><item><title>RE: Typo in documentation?  ECB peripheral doesn't decrypt?</title><link>https://devzone.nordicsemi.com/thread/91848?ContentTypeID=1</link><pubDate>Sun, 09 Jul 2017 04:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17fdc4ab-ad06-4f27-bccd-a18c18946703</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes Eric, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ecb.html?cp=2_1_0_27#concept_vnj_kgy_xr"&gt;&lt;em&gt;&amp;quot;encryption only, not decryption&amp;quot;&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Typo in documentation?  ECB peripheral doesn't decrypt?</title><link>https://devzone.nordicsemi.com/thread/91847?ContentTypeID=1</link><pubDate>Sun, 09 Jul 2017 03:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4506e223-bb70-4dd2-91b9-bb2cd9a50d68</guid><dc:creator>BLE_lp</dc:creator><description>&lt;p&gt;Thanks.  I&amp;#39;m using mbed, and I was able to use a modified version of the main mbed TLS library for software AES decryption.  Initial results seem like it works pretty well as far as speed is concerned.&lt;/p&gt;
&lt;p&gt;It looks like both the nRF51822 and nRF82832 have the same ECB driver interface, so I&amp;#39;m assuming the nRF82832 doesn&amp;#39;t do hardware AES decryption either, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Typo in documentation?  ECB peripheral doesn't decrypt?</title><link>https://devzone.nordicsemi.com/thread/91846?ContentTypeID=1</link><pubDate>Sat, 08 Jul 2017 16:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0a0f8d-ebb0-482f-a1ed-2a4367685365</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes that&amp;#39;s type, HW &amp;quot;accelerated&amp;quot; AES encryption on nRF51 doesn&amp;#39;t implement inverse decryption function. This is because Bluetooth doesn&amp;#39;t need it (it uses CRT mode where AES encrypt function is combined with XOR stream cypher to perform both encrypt and decrypt) so there was no need to have it in HW. Indeed it makes it harder for application developers if they need it but the workarounds are easy: either use some modern methods such as AES-CRT which don&amp;#39;t need it or implement it in SW (few hundred bytes in resulting binary if you know what you are doing...) There are &lt;a href="https://devzone.nordicsemi.com/question/33513/how-to-decrypt-aes-ecb-nopadding-data/"&gt;numerous Q&amp;amp;As&lt;/a&gt; on this forum about this as well as &lt;a href="https://devzone.nordicsemi.com/blogs/721/intro-to-application-level-security-using-the-ecb-/"&gt;nice blog post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Typo in documentation?  ECB peripheral doesn't decrypt?</title><link>https://devzone.nordicsemi.com/thread/91845?ContentTypeID=1</link><pubDate>Sat, 08 Jul 2017 15:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3498bc67-a2be-4c7e-a1cc-59318cd912ac</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Yes this is a typo. Seems to be corrected only in the 13.x.y SDK, which is not available for NRF51x AFAIK.&lt;/p&gt;
&lt;p&gt;The ECB hardware as documented in the reference manual can only &lt;em&gt;encrypt&lt;/em&gt; AES-128 - only this mode is used for BT LE. Note that you can still use this hardware in some AES modes - like AES CFB mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>