<?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>Memory Corruption when Using CryptoCell310&amp;#39;s AES CCM Module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58453/memory-corruption-when-using-cryptocell310-s-aes-ccm-module</link><description>Hello, 
 
 I am developing a driver that can handle cryptographic operations and I am using example code from nRF5_SDK_16.0.0_98a08e2 /examples/crypto/nrf_cc310/aes to get started with encryption using AES-CCM. While developing my driver, I came across</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2020 01:33:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58453/memory-corruption-when-using-cryptocell310-s-aes-ccm-module" /><item><title>RE: Memory Corruption when Using CryptoCell310's AES CCM Module</title><link>https://devzone.nordicsemi.com/thread/237896?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 01:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbc18c1-796d-4ef5-bbdb-5b9406a2fc9a</guid><dc:creator>greenek</dc:creator><description>&lt;p&gt;Thanks Jorgen. Using the nrf_crypto frontend with the CC310 backend solved these issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Corruption when Using CryptoCell310's AES CCM Module</title><link>https://devzone.nordicsemi.com/thread/237249?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 20:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3294a158-b779-4bd5-87e5-a00c875258fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. This could maybe be related to the comment in&amp;nbsp;components\libraries\crypto\backend\cc310\cc310_backend_aes_aead.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* CC310 backend always needs 16 bytes buffer for MAC calculation. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In general, the CC310 API is quite hard to use, and there is not much checking if things are done correctly. We rather recommend using the nrf_crypto library, with the CC310 backend. This should do a lot more checking, to make sure every parameter and placement is valid.&lt;/p&gt;
&lt;p&gt;2. There should not be any problems with using the CC310 together with the softdevice.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>