<?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>Hardware ECB decryption(AES)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30196/hardware-ecb-decryption-aes</link><description>Hi, 
 I want to use hardware ECB encryption and decryption in 52840.I had tested the demo from nRF5_SDK_13.1.0\examples\crypto\nrf_cc310\aes\pca10056 . However,i can&amp;#39;t find the way to to decrypt.Is there any function to use the Hardware ECB decryption</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Feb 2018 15:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30196/hardware-ecb-decryption-aes" /><item><title>RE: Hardware ECB decryption(AES)</title><link>https://devzone.nordicsemi.com/thread/119787?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 15:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9cd7741-038f-4577-9700-c7e20a65c6ad</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Challen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; The example you are referring to is only using&amp;nbsp;&lt;span&gt;encryption, but you can use the same &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fgroup__cryptocell__api.html&amp;amp;resultof=%22CRYS_AESCCM%22%20" rel="noopener noreferrer" target="_blank"&gt;API&lt;/a&gt; for the decryption.&amp;nbsp; The first parameter to CRYS_AESCCM chooses if it&amp;#39;s gonna be encryption or decryption. &lt;em&gt;(&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fgroup__ssi__aes.html&amp;amp;anchor=gga1da6b8e8fe0d55e4365e91baa5874894abf26829ecc6830ef1efa205560985331" rel="noopener noreferrer" target="_blank"&gt;SASI_AES_ENCRYPT&lt;/a&gt; can be changed to &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fgroup__ssi__aes.html&amp;amp;anchor=gga1da6b8e8fe0d55e4365e91baa5874894a19e9819f7f08ef884b2868d0387b7158" rel="noopener noreferrer" target="_blank"&gt;SASI_AES_DECRYPT&lt;/a&gt;, both from the enum&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__ssi__aes.html#ga1da6b8e8fe0d55e4365e91baa5874894"&gt;SaSiAesEncryptMode_t&lt;/a&gt;)&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You would presumably find what you need if you look in the API-Documentation to CC_AESCCM found in &lt;em&gt;[&amp;lt;SDK_Version&amp;gt;\external\nrf_cc310\include\crys_aesccm.h]&lt;/em&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(&lt;em&gt;Note: &lt;strong&gt;CRYS_AESCCM&lt;/strong&gt; which is used in the example is defined to &lt;strong&gt;CC_AESCCM&lt;/strong&gt; in crys_aesccm.h)&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Martin L.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardware ECB decryption(AES)</title><link>https://devzone.nordicsemi.com/thread/119709?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 11:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5daeb6b-0f26-495b-8cae-0b7097b7d4c1</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Decryption is similar to encryption. The only difference is in the init function SaSi_AesInit. You need to change its second argument to: SASI_AES_DECRYPT. Other steps are the same as for encryption&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>