<?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>Directly access mbedTLS from nRF-SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58033/directly-access-mbedtls-from-nrf-sdk</link><description>Hey all 
 I have to following setup: 
 
 nRF52840-DK (development kit) 
 Nordic SDK 15.3 
 Development using eclipse CDT (Makefile project) 
 
 I&amp;#39;d like to implement an EC-JPAKE sequence, by directly accessing the mbedtls API (ecjpake.h from mbedtls)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2020 12:20:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58033/directly-access-mbedtls-from-nrf-sdk" /><item><title>RE: Directly access mbedTLS from nRF-SDK</title><link>https://devzone.nordicsemi.com/thread/235703?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 12:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9505939-3c86-49b1-af25-03540d0b0ad8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not tested it, but I don&amp;#39;t see why it should be a problem. But neither do I see a reason for it (other than saving compilation time)&lt;/p&gt;
&lt;p&gt;you can use the mbed tls directly anyway, without building it as a separate library first (like we do in nrf_crypto).&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Directly access mbedTLS from nRF-SDK</title><link>https://devzone.nordicsemi.com/thread/235502?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be75a3d-b185-48db-b3f9-91005a61355d</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;Thanks for your answer, I&amp;#39;m aware that the nordic SDK does not provide the ecjpake API.That&amp;#39;s the reason, why I currently use the mbedtls directly.&lt;/p&gt;
&lt;p&gt;My question goes more in the direction: what&amp;#39;s the best approach to access/link the mbedtls library in my project?&lt;/p&gt;
&lt;p&gt;- link it as static library&lt;/p&gt;
&lt;p&gt;- Access via the SDK source (external)&lt;/p&gt;
&lt;p&gt;- what else?&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m currently doing is, I&amp;#39;ve just added the ecjpake.c file, which is available in the nordic SDK (because nordic is using the mbedtls implementation) into my Makefile and then I was ready to use the ecjpake from mbedtls directly. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not interested in Elliptic Curve Cryptography directly but only in regard of the ec-jpake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Directly access mbedTLS from nRF-SDK</title><link>https://devzone.nordicsemi.com/thread/235447?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 12:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdd41d6-b617-4594-aa81-58e4e773638a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]What would be the best approach to get access to the ecjpake API from mbedtls, there seem to be various ways?[/quote]
&lt;p&gt;SDK 15.3 does not support the ecjpake API.&amp;nbsp; It only supports&amp;nbsp;&lt;a title="Elliptic Curve Cryptography Key Management" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__crypto__ecc.html?cp=7_5_0_6_11_11_14"&gt;Elliptic Curve Cryptography Key Management&lt;/a&gt;,&amp;nbsp;&lt;a title="Elliptic Curve Diffie-Hellman (ECDH)" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__crypto__ecdh.html?cp=7_5_0_6_11_11_15"&gt;Elliptic Curve Diffie-Hellman (ECDH)&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="Elliptic Curve Digital Signature (ECDSA)" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__crypto__ecdsa.html?cp=7_5_0_6_11_11_16"&gt;Elliptic Curve Digital Signature (ECDSA)&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]And how can I get this security-module (they are using some kconfig files) to work?[/quote]
&lt;p&gt;&amp;nbsp;If you want to use&amp;nbsp;&lt;span&gt;Elliptic&lt;/span&gt;&lt;span&gt;&amp;nbsp;Curve&amp;nbsp;Cryptography Library, please enable&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__ecc__config.html#ga65e9794e14c81aee3f907481eb693b31"&gt;ECC_ENABLED&lt;/a&gt;&amp;nbsp;in the sdk_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>