<?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>Encryption in data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66099/encryption-in-data</link><description>Hi Team, 
 we are working on nrf52 and we doing encryption of the data. 
 on the receiver end I can understand if there is connection , the keys will be exchanged and after that the receiver can decode advertisement packets. 
 But I would like to know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Sep 2020 15:18:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66099/encryption-in-data" /><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270663?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 15:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:150c5933-1f86-4ab2-a13b-48b5e58e652b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;[quote user="four_ice"][/quote]&lt;/p&gt;
&lt;p&gt;But on other side of receiver its not nRF device, Its plain gateway which will be received the advertisements from nRF 52 transmitter.&lt;/p&gt;
&lt;p&gt;Still it would do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, this is fine. All certified BLE stack implementations will conform to the BLE protocol, and the LESC is part of the protocol, no worries.&lt;br /&gt;I can not speak to&amp;nbsp;&lt;em&gt;how&lt;/em&gt; you must go about doing this with the other BLE stack, but I should hope and expect it to be roughly as easy as it is to configure using our SoftDevices.&lt;/p&gt;
[quote user="four_ice"]if yes, then how this packets would be encrypted as I think it can be decoded by any receiver as well[/quote]
&lt;p&gt;It is true that any receiver could potentially decode it - but that is needed to conform to the BLE specifications. Please have a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35856/questions-about-lesc-mitm-and-passkey/138216#138216"&gt;look at the answers in this ticket&lt;/a&gt;, to see a more in-depth explanation of the LESC encryption.&lt;br /&gt;&lt;br /&gt;If you are still unsure of how this can be safe I recommend taking a look at the underlying Diffi-Hellman key exchange.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270644?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 14:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c02dc1-9b88-48df-9a9c-1733bc6cb71b</guid><dc:creator>Zero.cool</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Luckily, the SoftDevice ( if it is an nRF device ) or BLE stack in the other end take care of this for you, no need for you to do anything in regards to the encryption.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you for response. &lt;br /&gt;But on other side of receiver its not nRF device, Its plain gateway which will be received the advertisements from nRF 52 transmitter.&lt;/p&gt;
&lt;p&gt;Still it would do?&lt;br /&gt;if yes, then how this packets would be encrypted as I think it can be decoded by any receiver as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270629?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 13:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e364349-94a4-4976-ad40-51636a8b0944</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="four_ice"]Thank you for response.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;br /&gt;&lt;br /&gt;[quote user="four_ice"][/quote]&lt;/p&gt;
&lt;p&gt;Yes, correctly understood,&lt;/p&gt;
&lt;p&gt;but here some advertisement (without connection ) if gets dropped or non received by receiver , that is still ok.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for confirming this.&lt;/p&gt;
[quote user="four_ice"]its good suggestion to use LESC but on the receiver end how to handle decoding,?&lt;br /&gt;Could you point to any example, document or reference.[/quote]
&lt;p&gt;Luckily, the SoftDevice ( if it is an nRF device ) or BLE stack in the other end take care of this for you, no need for you to do anything in regards to the encryption.&lt;br /&gt;You may see this being done in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_gls.html"&gt;BLE Glucose monitor example application from the SDK&lt;/a&gt;.&lt;br /&gt;The example uses LESC with MITM protection. The example contains a lot of other functionality too, but the interesting parts for you to see is mainly the &lt;em&gt;peer_manager_init&lt;/em&gt;, with regards to configuring LESC and security.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270570?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 11:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30362f46-bc9f-4307-a2b9-e21e1e104be7</guid><dc:creator>Zero.cool</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisaker&lt;/a&gt;&lt;br /&gt;Thank you for response. &lt;/p&gt;
&lt;p&gt;Yes, correctly understood,&lt;/p&gt;
&lt;p&gt;but here some advertisement (without connection ) if gets dropped or non received by receiver , that is still ok.&lt;/p&gt;
&lt;p&gt;its good suggestion to use LESC but on the receiver end how to handle decoding,?&lt;br /&gt;Could you point to any example, document or reference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270562?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 11:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ebe29de-2c0e-4306-b205-675a15f56d60</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;What @awneil is referring to here is the fact that if you intend to encrypt data, send it, and then decrypt it then it does not matter much&amp;nbsp;&lt;em&gt;how&lt;/em&gt; you transport that data - i.e the fact that you are doing this through advertisements does not matter for how you may go about encrypting the data, as long as both sender and receiver knows what to expect from these transfers.&lt;br /&gt;&lt;br /&gt;If I may ask, have you considered using a connection with LESC in stead of advertising encrypted data here? This way, the encryption will be taken care of for you by the SoftDevice.&lt;br /&gt;Please keep in mind that when you are using advertisements you have no guarantee that the receiver has actually gotten the messages - so if you are transferring important data, then you may loose some of it without knowing, when using advertisements to transport it.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to let me know if I should have misunderstood your question, or if anything still should be unclear.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270375?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 15:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29364d02-c71a-423a-9ef8-cbc57e3548f9</guid><dc:creator>Zero.cool</dc:creator><description>&lt;p&gt;could you please elaborate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encryption in data</title><link>https://devzone.nordicsemi.com/thread/270349?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 13:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3607910d-919a-4163-ac0b-9824fa9c837c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;surely, the method by which the encrypted data is transported is irrelevant to how you decrypt it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>