<?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>Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82797/connectivity-and-security-with-limited-ram</link><description>I&amp;#39;m currently developping an application based on the Zephyr OS with its BLE protocol stack using the nRF52805 SoC. Due to security specifications, some cryptographical features of the built-in mbedTLS library shall be used. Since the nRF52805 does only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jan 2022 14:14:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82797/connectivity-and-security-with-limited-ram" /><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/346237?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 14:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4ba028-bf71-4424-8bb6-af88009ec64f</guid><dc:creator>Manuel</dc:creator><description>&lt;p&gt;Thank you very much, the manually added entry in&amp;nbsp;&lt;span&gt;CMakeLists.txt did the trick!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now it&amp;#39;s working with the following added terms:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;prj.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_OBERON=y&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CMakeLists.txt&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_link_libraries(nrfxlib_crypto)&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;C-code:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;ocrypto_sha256.h&amp;gt;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Manuel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/346215?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 13:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:033eeafc-bb66-4f8b-88bb-cf12b2e9e5d9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Try to add the following to CMakeLists.txt:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_link_libraries(nrfxlib_crypto)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Although, I think this should be done by the configuration somewhere. &lt;br /&gt;I will ask our developers about this and return if I find a better solution. (EDIT: They agree that this is a sufficient way to include the ocrypto files at the moment)&lt;/p&gt;
&lt;p&gt;After some reading into this I suggest that you do not &lt;a href="https://devzone.nordicsemi.com/support-private/support/281308/CONFIG_NORDIC_SECURITY_BACKEND"&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/a&gt; or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/kconfig/CONFIG_OBERON_BACKEND.html#std-kconfig-CONFIG_OBERON_BACKEND"&gt;CONFIG_OBERON_BACKEND&lt;/a&gt;(Which just chooses the backend for Nordic Security backend) , as these will select mbedtls, which makes your application take more space:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4848.pastedimage1641389828004v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_NRF_OBERON should be enough I think.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/346118?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 11:07:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1480ccb-8559-46e1-b8ba-55b041e8640c</guid><dc:creator>Manuel</dc:creator><description>&lt;p&gt;Hello Sigurd&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;br /&gt;I made the following configurations in prj.conf which are related to oberon:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_SECURITY_BACKEND=y
CONFIG_OBERON_BACKEND=y
CONFIG_NRF_OBERON=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The include as&amp;nbsp;stated&amp;nbsp;below&amp;nbsp;does still not work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;ocrypto_sha256.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/346103?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 10:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a65fdb-36d1-45e1-90c2-18cafa7e5a35</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Manuel,&lt;/p&gt;
&lt;p&gt;I will continue handle your case.&lt;/p&gt;
&lt;p&gt;My first guess is that you are missing some Kconfig configurations.&lt;br /&gt;Have you configured &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/kconfig/CONFIG_OBERON_BACKEND.html#std-kconfig-CONFIG_OBERON_BACKEND"&gt;CONFIG_OBERON_BACKEND&lt;/a&gt;?&lt;br /&gt;Could you post the contents of your prj.conf file?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/346027?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 07:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd4226f2-b73b-4fdf-87a0-d504b8533d83</guid><dc:creator>Manuel</dc:creator><description>&lt;p&gt;I now managed to implement the required cryptographical operations using the oberon library and it seems to work with a high enough stack size.&lt;/p&gt;
&lt;p&gt;However, I was not able to use relative paths to the library files, since they were not found within the project / environment. Instead I had to use absolute include paths e.g.:&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;C:\work\tools\ncs\v1.7.0\nrfxlib\crypto\nrf_oberon\include\ocrypto_ecdsa_p256.h&amp;quot;&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Am I missing something?&lt;br /&gt;How must I configure the toolchain, the project or its CMakeLists.txt to have these include paths available?&lt;br /&gt;Any other ideas, what the reason for this could be?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/343654?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 13:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a86c689-435e-4b56-9ec0-07c8f5cb43a5</guid><dc:creator>Manuel</dc:creator><description>&lt;p&gt;Thank you for your reply!&lt;/p&gt;
&lt;p&gt;Yes it is indeed not very ressource friendly. One main reason to go with mbedTLS as a first try is that it&amp;#39;s&amp;nbsp;already integrated into Zephyr and thus easy to&amp;nbsp;embed&amp;nbsp;into&amp;nbsp;the project. However, I think this does not match&amp;nbsp;with&amp;nbsp;our device choice.&lt;br /&gt;Oberon has already been in scope but requires to make some compromises&amp;nbsp;regarding our intended security concept and thus was not the first choice so far. I will check if this could actually&amp;nbsp;be a viable alternative.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connectivity AND security with limited RAM</title><link>https://devzone.nordicsemi.com/thread/343615?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 11:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:499f9948-9f4a-4fbb-be4a-87b76f740849</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;From my understanding the mbedtls is the largest crypto library, maybe you can look into using the oberon or tinycrypt instead?&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/crypto/tinycrypt.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/crypto/tinycrypt.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_oberon.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_oberon.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>