<?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>SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80260/sdk-17-1-0---nrf_ble_lesc_generate_new_keys</link><description>Hello, With nRF5 SDK 17.1.0 release a new ifdef NRF_BLE_LESC_GENERATE_NEW_KEYS in nrf_ble_lesc.c has been added. Could you please clarify what the intention is of this generating a new key pair for each BLE_GAP_EVT_AUTH_STATUS is? Does this somehow affect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Oct 2021 07:24:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80260/sdk-17-1-0---nrf_ble_lesc_generate_new_keys" /><item><title>RE: SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/thread/332941?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 07:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529e7ef3-547c-483b-b4bd-f32b7e77e5de</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;No problem!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Btw,&amp;nbsp;it seems that the &lt;span&gt;NRF_BLE_LESC_GENERATE_NEW_KEYS&amp;nbsp; snippet also deals with key refreshes in general. A device should change its private key after every pairing, succesful or failed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/thread/332870?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 14:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c6876d5-344a-46e2-ac67-105b0b01aa00</guid><dc:creator>RenderMonkey</dc:creator><description>&lt;p&gt;Thank you Elfving!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/thread/332799?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 11:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c336c1-db58-41e7-b5e2-f803c5896f17</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, it seems I was mistaken. The&amp;nbsp;&lt;span&gt;CVE-2020-26558 security fix is being addressed on line 358.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633516574555v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="RenderMonkey"] Is it for the highly unlikely case when two units attempt to bond and happen to have the same public key?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yeah I think you are right. The ifdef&amp;nbsp;&lt;span&gt;NRF_BLE_LESC_GENERATE_NEW_KEYS&amp;nbsp;snippet is likely there to avoid the scenario where two devices have the same public key. It is optional because an exception is needed for the NFC library (this library generates LESC keys itself after every pairing attempt).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/thread/332626?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 12:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b569bdb-38fb-42f6-b511-807a3a2f0554</guid><dc:creator>RenderMonkey</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;I have read the release notes and this is why I am asking. Since this setting is optional, I am asking for clarification when it is needed (or rather why it is optional). Is it for the highly unlikely case when two units attempt to bond and happen to have the same public key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 17.1.0 - NRF_BLE_LESC_GENERATE_NEW_KEYS</title><link>https://devzone.nordicsemi.com/thread/332618?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 12:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:024ebf27-7804-4400-a6e9-3dc7b0306e28</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello RenderMonkey,&lt;/p&gt;
&lt;p&gt;It is mentioned in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/index.html"&gt;nRF5 SDK release notes&lt;/a&gt;. It is a security mitigation mechanism to address a security vulnerability&amp;nbsp;in the Bluetooth Core spec: CVE-2020-26558.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>