<?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 access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111155/how-to-access-functions-like-sha-256-from-the-cryptocell</link><description>I need a checksum to verify integrity of some data blocsk. As I saw, that the nrf5340 hardware has some builtin support for SHA-256, I though: cool, let&amp;#39;s use SHA-256 
 Now, I&amp;#39;m desperately searching for documentation as how to access that functionality</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 22:56:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111155/how-to-access-functions-like-sha-256-from-the-cryptocell" /><item><title>RE: How to access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/thread/491425?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 22:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdfbdef9-2105-462e-b4ef-d7f23c6dd677</guid><dc:creator>Frank Aune</dc:creator><description>&lt;p&gt;Check out latest CC312 doc for nRF5340 here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/cryptocell.html#cc_frontpage"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/cryptocell.html#cc_frontpage&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Bare-metal library from trustedfirmware.org:&amp;nbsp;&lt;a id="" href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m/+/refs/heads/main/platform/ext/accelerator/cc312/cc312-rom"&gt;https://git.trustedfirmware.org/TF-M/trusted-firmware-m/+/refs/heads/main/platform/ext/accelerator/cc312/cc312-rom&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nordics libs are more integrated and tested together with rest of NCS, but the above give you more control at the expense of being exposed to bare-metal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/thread/484658?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 11:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88984af3-c8bd-4e36-987c-fce5661a3cff</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Well, using Zephyr is promising to make it at least a little bit easier to run the same code on different hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/thread/484657?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 11:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ed121c-d583-4ec2-83cb-1607a09b43d8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Torsten,&lt;/p&gt;
&lt;p&gt;I am not sure which kind of portability you are looking for.&amp;nbsp;Most of the code in nRF Connect SDK (NCS) is specific to NCS or Zephyr at certain depth.&lt;/p&gt;
&lt;p&gt;What I can say is that the nRF Security library follows the&amp;nbsp;&lt;a href="https://arm-software.github.io/psa-api/crypto/1.1/index.html"&gt;PSA Certified Crypto API&lt;/a&gt;. So, the code should be portable to any system/environment that&amp;nbsp;is also compliant with PSA Certified Crypto API.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/thread/484607?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 05:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e4ac663-399c-4932-99f5-746e694c27be</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vthieu"&gt;Hieu&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you for your fast reply. Using the Mbed library for Zephyr is not really intuitive ;-) This also means, that this is not going to be portable, right? (which is not really a concern for us, just out of curiosity)&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access functions like SHA-256 from the CRYPTOCELL?</title><link>https://devzone.nordicsemi.com/thread/484573?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 17:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b12a05-41bb-4ff5-b1e6-907999034b73</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Torsten,&lt;/p&gt;
&lt;p&gt;I am sorry to hear you were confused. I will relay your experience to our teams to improve the experience.&lt;/p&gt;
&lt;p&gt;In newer versions of the nRF Connect SDK,&amp;nbsp;we recommend using the nRF Security&amp;nbsp;library for cryptography purposes. Its documentation is here:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/security/nrf_security/index.html"&gt;nRF Security — nRF Connect SDK 2.6.1 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can find samples here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/samples/crypto.html"&gt;Cryptography samples — nRF Connect SDK 2.6.1 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, the library will use the hardware CryptoCell as a backend where possible, and software libraries otherwise. &lt;br /&gt;For&amp;nbsp;example, with AES encryption, 128-bit operations will be handled by the CryptoCell, but 256-bit operations will be done by a software library like nrf_oberon, because the CryptoCell doesn&amp;#39;t&amp;nbsp;support that.&lt;/p&gt;
&lt;p&gt;I hope this clears&amp;nbsp;things up a little. Please give those resources I linked a try and let me know&amp;nbsp;if anything is still confusing.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>