<?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>BLE Connection by verifying thr enryption using ECDH</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114745/ble-connection-by-verifying-thr-enryption-using-ecdh</link><description>hello everyone, 
 I have a task to establish the connection between the BLE peripheral and mobile application after verifying the encryption by exchanging the public key of the peripheral and mobile application using the ECDH algorithm. 
 is it possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 12:28:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114745/ble-connection-by-verifying-thr-enryption-using-ecdh" /><item><title>RE: BLE Connection by verifying thr enryption using ECDH</title><link>https://devzone.nordicsemi.com/thread/502768?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aca7f0e-3863-427a-9dfc-5a58859d25cf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Srinivasa,&lt;/p&gt;
&lt;p&gt;Most nRF5 SDK 17.x.x samples that support bonding support support LESC (LE Secure Connections is the standard way to do pairing with ECDH). You can serach for the examples and pick any that has a call to&amp;nbsp;nrf_ble_lesc_request_handler() to see how LESC is handled.&lt;/p&gt;
&lt;p&gt;PS: I recomend you migrate to SDK 17.1.0 if you want to stay on the nRF5 SDK as that has some important fixes and support the latest revision nRF52832 devices.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Connection by verifying thr enryption using ECDH</title><link>https://devzone.nordicsemi.com/thread/502755?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3811d613-0d56-4c96-b3f7-2f6850be20d8</guid><dc:creator>srinivasa m</dc:creator><description>&lt;p&gt;Hi Einar&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;I am using nRFSDK 17.0.1 and how to enable the ECDH for pairing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Srinivasa M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Connection by verifying thr enryption using ECDH</title><link>https://devzone.nordicsemi.com/thread/502554?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 07:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1ca33f-4db4-4b2f-866b-b6c4cca864f1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no way to exchange two-way data before connecting. But ECDH is the mechanism used in LE Secure Connections, so I assume that is what you are supposed to use? That is supported out of the box in the SDK. If you need an introduction to this I recomend you take a look at &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/"&gt;Lesson 5 – Security in Bluetooth LE communication&lt;/a&gt; of our Bleutooth course on the Nordic DevAcademy.&lt;/p&gt;
&lt;p&gt;If the point is that you want to only support LE Secure Connections (key exchange via ECDH) and not legacy pairign, you can add&amp;nbsp;&lt;code&gt;CONFIG_BT_SMP_SC_ONLY=y&lt;/code&gt; to your project configuration, as demonstrated by the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/samples/bluetooth/peripheral_sc_only/README.html"&gt;Bluetooth: Peripheral SC-only sample&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>