<?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 use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85284/how-to-use-cryptocell310-with-nrf-connect-sdk</link><description>Hi there, 
 the nRF58240 SoC supports a wide range of hardware-accelerated cryptography features using ARM&amp;#39;s CryptoCell310. However, I&amp;#39;m unable to use many of the features with the nRF Connect SDK. The samples included in the the official documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Apr 2022 13:52:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85284/how-to-use-cryptocell310-with-nrf-connect-sdk" /><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/364505?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 13:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46229f8-f74d-4f08-a553-af4526499a58</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Unfortunately not. This will take some time and I cannot provide a timeline.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/364503?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 13:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14bd2c77-5c4e-41ff-87ca-33ee049c39df</guid><dc:creator>ipener</dc:creator><description>&lt;p&gt;Another month passed. Any updates on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/359145?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 13:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4898165-1fa8-4d92-a3d6-5f9ca5b38921</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I understand. I will let you know if we find a solution. I cannot promise anything short term, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/358742?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 20:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99ec6f4-721f-4ac0-8d1a-17e5412d075b</guid><dc:creator>ipener</dc:creator><description>&lt;p&gt;Thanks, it would be great to make this work somehow. Else,&amp;nbsp;we&amp;#39;d have to resort to using the nRF5 SDK (which is a ton of work).&amp;nbsp;Doing a simple grep search for &lt;code&gt;CC_LibInit&lt;/code&gt; I&amp;#39;ve noticed that there are matches in the static CC310 libraries, e.g.&amp;nbsp;&lt;span&gt;&lt;em&gt;./nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/libnrf_cc310_platform_0.9.13.a&lt;/em&gt; which&amp;nbsp;leads me to believe that 1) either this function is invoked as part of some&amp;nbsp;platform&amp;nbsp;initialization routine or 2) the&amp;nbsp;implementation exists but the respective header files&amp;nbsp;are missing from the NCS. Either way, it would be great if you could figure out a solution and let me know.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/358296?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 19:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307b2ca6-6e0c-416b-a122-26fdf6d3d253</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, you are right, I did not remember that. I asked the team and there has not been done any work on this recently, so the situation remains the same. I will try to get more info on this and update here.&lt;/p&gt;
&lt;p&gt;Update: We will add support for SRP in the PSA driver when it is added to the PSA Crypto APIs. We have not done any work with the non-standards SRP APIs (from mbedtls_extra) at this point. I will let you know if we are able to make it work nontheless, but I cannot promise anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/357876?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 09:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:238b9d2c-9129-4f46-b30a-2a42c8d19362</guid><dc:creator>ipener</dc:creator><description>&lt;p&gt;Thanks again for the pointers, however, I&amp;#39;m still unable to use the SRP functionality (on systems using CC310). In particular, the function &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/f215460bec9869a2122059af28550792358a77e5/crypto/nrf_cc310_mbedcrypto/include/mbedtls_extra/mbedtls_cc_srp.h#L198"&gt;&lt;code&gt;mbedtls_srp_init&lt;/code&gt;&lt;/a&gt;&amp;nbsp;requires a reference to a &lt;code&gt;CCRndContext_t&lt;/code&gt; but there doesn&amp;#39;t seem to be a way to initialize it.&amp;nbsp;You mentioned about a year ago &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65968/how-to-get-ccrndcontext_t-pointer-needed-for-srp"&gt;here&lt;/a&gt;&amp;nbsp;that&amp;nbsp;the SW support for this was&amp;nbsp;incomplete. Using the nRF5 SDK, it was possible to initialize the context with a call to &lt;code&gt;&lt;span&gt;SaSi_LibInit&lt;/span&gt;&lt;/code&gt;. The CC312 runtime&amp;nbsp;provides a similar way&amp;nbsp;by using a call to &lt;code&gt;CC_LibInit&lt;/code&gt;.&amp;nbsp;I presume there must be a way to achieve this for CC310 systems.&amp;nbsp;&lt;span&gt;Is there an update on this situation?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/355850?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 14:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7dc4b48-620f-422a-b1b8-dfbc6a26a4b1</guid><dc:creator>ipener</dc:creator><description>&lt;p&gt;Awesome! Thanks for the pointers &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/355794?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 11:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948f6a9a-b6e4-4026-acde-98aee5cfe996</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;HKDF is supported (see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_cc310_mbedcrypto.html"&gt;cc3xx_mbedcrypto documentation&lt;/a&gt;&amp;nbsp;for list of features). SRP is also available, but outside of mbed TLS (see &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/main/crypto/nrf_cc310_mbedcrypto/include/mbedtls_extra/mbedtls_cc_srp.h"&gt;mbedtls_cc_srp.h&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/355634?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 15:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed5d4bb-823a-4461-b3b7-92095e98a9de</guid><dc:creator>ipener</dc:creator><description>&lt;p&gt;Thanks for the reply. I&amp;#39;m aware of the Nordic Security Module and nrf_cc3xx_mbedcrypto library. However,&amp;nbsp;the SRP and HKDF functionality seems&amp;nbsp;doesn&amp;#39;t seem to be accessible through those APIs although the nRF58240 data sheet states that the SoC supports it.&amp;nbsp;As I understand it&amp;#39;s possible to use the nRF5 SDK instead of nRF Connect but this comes with other tradeoffs.&amp;nbsp;Do you know whether&amp;nbsp;the nRF Connect SDK will eventually support all of the CryptoCell features?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell310 with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/355590?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 14:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f91cdcbe-f61f-4560-a699-fe8f05bf88dd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF5 SDK included the CC310 runtime library with CRYS_ based API functions, but in most cases users were/are intended to use the nrf_crypto based API&amp;#39;s (that is of course optional, though).&lt;/p&gt;
&lt;p&gt;For the Connect SDK SDK there are also several layers of libraries and APIs available, but not the CRYS_ based APIs. The intention there is to primarily use the PSA APIs demonstrated by the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/samples_crypto.html"&gt;crypto examples&lt;/a&gt; you linked to. However, you can also use the&amp;nbsp;&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_security/README.html#nrf-security"&gt;Nordic security module&lt;/a&gt;, which in turn interface &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_cc310_mbedcrypto.html"&gt;nrf_cc3xx_mbedcrypto&lt;/a&gt;&amp;nbsp;library (among other backends), which you can also use directly. This is the lowest level API you get for CryptoCell in the nRF Connect SDK. You can refer to the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/tests/crypto/README.html"&gt;Cryptography tests&lt;/a&gt;&amp;nbsp;to see examples of&amp;nbsp;using the Nordic security module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>