<?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>What could be better for security  encryption and authentication : passkey vs PKI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30793/what-could-be-better-for-security-encryption-and-authentication-passkey-vs-pki</link><description>Hi guys 
 I am wondering what could be better for my system: 
 Multiples nRF52 central and peripherals (uart input/uart output to simulate keyboard and display) 
 SDK 13 
 Required: MITM, eavesdrop protection 
 
 What is more recommended use peer manager</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2018 10:15:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30793/what-could-be-better-for-security-encryption-and-authentication-passkey-vs-pki" /><item><title>RE: What could be better for security  encryption and authentication : passkey vs PKI</title><link>https://devzone.nordicsemi.com/thread/122101?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 10:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e982ac9-ad88-4f06-bcd7-a0cde3773423</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, both approaches offer MITM protection when a central and peripheral connect for the first time and pair and bond (All BLE bonds are secure once the bonding is complete, so reconnection is not something you need to worry about).&lt;/p&gt;
&lt;p&gt;A pre-shared key is an example of OOB (Out of band) pairing. That might sound a bit strange, but essentially you are using the&amp;nbsp;production setup in your factory as the medium to share keys. You do not want to have the LTK or any BLE bonding data pre-shared, but rather just a key at some location in flash which can be used in a regular OOB pairing. The nRF5 SDK has an example showing OOB pairing over NFC (examples\ble_peripheral\experimental\ble_app_hrs_nfc_pairing), so if you have a look at how the pairing in that example works and strip away the NFC specific parts you have a good idea of how this should be done. You may also want to read up on the SoftDevice documentation.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v5.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga7253ccd230ed0db81e25e30fd6590cf9"&gt;sd_ble_gap_lesc_oob_data_set&lt;/a&gt;&amp;nbsp;seems like a good place to start.&lt;/p&gt;
&lt;p&gt;A point I forgot to mention in my last message is that you should consider the logistics of your manufacturing. LESC is an advantage in that all devices you make are identical and can be put two and two in their boxes without any further logistics. With pre-shared keys, you need to ensure that each pair of devices gets flashed with a slightly different firmware and placed as a pair in their box.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could be better for security  encryption and authentication : passkey vs PKI</title><link>https://devzone.nordicsemi.com/thread/121836?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 17:05:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a31667-fec9-4e6c-a1c9-5dd602b57305</guid><dc:creator>Lezto22</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Holmgren, thanks for the reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LESC using random passkey and pre-shared key both can offer protection against passive eavesdropping and MITM during connection/reconnection between a central and peripheral?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is there any example on the SDK with&amp;nbsp;pre-shared key approach?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What could be better for security  encryption and authentication : passkey vs PKI</title><link>https://devzone.nordicsemi.com/thread/121809?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 14:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22843117-29ff-4314-a353-605b7618f5ae</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which one you prefer is the deciding factor here. Both LE Secure Connections&amp;nbsp;and pre-shared&amp;nbsp;keys are equally secure and offer MITM and eavesdrop&amp;nbsp;protection. LESC is more flexible since it allows units to be paired after the devices are shipped, while the pre-shared key approach is simpler for an end users who just want things to work out of the box.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>