<?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>Integrating ecdh example into my ble project based on s132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48360/integrating-ecdh-example-into-my-ble-project-based-on-s132</link><description>I am trying to use functions of ecdh example in my softdevice based project. 
 
 key generator function you see below crashes my application. Firstly I have tried to debug with Keil but it gave &amp;quot;softdevice assertion error&amp;quot; which I think is not about the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2019 14:12:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48360/integrating-ecdh-example-into-my-ble-project-based-on-s132" /><item><title>RE: Integrating ecdh example into my ble project based on s132</title><link>https://devzone.nordicsemi.com/thread/196034?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 14:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34520eab-56cc-444f-87cb-ee2e76230e27</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I believe there are a few BLE peripheral examples that support LESC:&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\ble_app_hids_keyboard_pairing_nfc&lt;/p&gt;
&lt;p&gt;\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\ble_app_hrs_nfc_pairing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set&amp;nbsp;NFC_PAIRING_MODE to&amp;nbsp;NFC_PAIRING_MODE_LESC_JUST_WORKS it will handle LESC bonding. The actual crypto backend is configured through sdk_config.h.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating ecdh example into my ble project based on s132</title><link>https://devzone.nordicsemi.com/thread/193003?ContentTypeID=1</link><pubDate>Sat, 15 Jun 2019 08:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beee482a-5441-42f7-8811-5ab1981bab00</guid><dc:creator>yunusemrecatalcam</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/48360/integrating-ecdh-example-into-my-ble-project-based-on-s132/192062"]Also, if you want to use the RNG peripheral, then you need to use the softdevice api to fetch RNG values, you can&amp;#39;t use the RNG peripheral directly when the softdevice is enabled.[/quote]
&lt;p&gt;I get that I can&amp;#39;t use methods from ecdh or any other crypto example. Should I use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fgroup__cryptocell__api.html" rel="noopener noreferrer" target="_blank"&gt;cryptocell API&lt;/a&gt;&amp;nbsp; for implementing a diffie hellman application? And&amp;nbsp;an additional question, I see that all example projects placed on SDK files are designed for non-softdevice systems, is it true? Is there a place that I can find examples for usage of crypto API on softdevice?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating ecdh example into my ble project based on s132</title><link>https://devzone.nordicsemi.com/thread/192062?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 12:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e04b12-7e0a-4864-9a6f-98df2c64666e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The error code 34050 means:&lt;/p&gt;
&lt;p&gt;#define NRF_ERROR_CRYPTO_CONTEXT_NOT_INITIALIZED&amp;nbsp; &amp;nbsp; (NRF_ERROR_CRYPTO_ERR_BASE + 0x02)&amp;nbsp; &amp;nbsp; &amp;nbsp; /**&amp;lt; The context was not initialized prior to this call or it was corrupted. Call the corresponding init function for the algorithm to initialize it. */&lt;/p&gt;
&lt;p&gt;Also, if you want to use the RNG peripheral, then you need to use the softdevice api to fetch RNG values, you can&amp;#39;t use the RNG peripheral directly when the softdevice is enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>