<?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>AES hardware decryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46891/aes-hardware-decryption</link><description>Hello. We are using nrf52840 for our product and I wanted to use aes ccm encryption for security. I was able to integrate CC310 library but I found out that encryption works fine but decryption returns CRYS_FATAL_ERROR (0x00F50000). I tried basic example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2019 10:24:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46891/aes-hardware-decryption" /><item><title>RE: AES hardware decryption</title><link>https://devzone.nordicsemi.com/thread/185132?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 10:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d975a8-6d4b-4c1e-9819-cdcee3f97915</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;I used API of NRF_CC310 itself. But I checked nrf_crypto and it was returning NRF_ERROR_INTERNAL_ERROR which is not very helpful as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AES hardware decryption</title><link>https://devzone.nordicsemi.com/thread/185129?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 10:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:256bdee7-8109-4551-80da-63ba9a48bc09</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you try using nrf_crypto library? Such feedback shall be handled there.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_crypto.html?cp=5_0_3_11"&gt;infocenter.nordicsemi.com/.../lib_crypto.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AES hardware decryption</title><link>https://devzone.nordicsemi.com/thread/185100?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 09:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba7e9ccf-0277-4c7b-a7ec-3b38c8f91a37</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Turns out that valid MAC must be provided. Otherewise decryption fails with this not very descriptive error code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NORDIC: Consider creating error code for wrong MAC. Also it would be nice to mention MAC will be checked internally. My understanding was that MAC will be calculated over decrypted message and returned to user to compare with received one. Maybe that solution is obvious for people common with crypto but that wasnt me &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>