<?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>NRF51822 Authenticate and Encrypt functions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7850/nrf51822-authenticate-and-encrypt-functions</link><description>Hi, 
 I am attempting to create a secure BLE connection in security mode 1 and level 3.
I noticed that when I simply call sd_ble_gap_authenticate with MITM = 1 it seems to put me in that security mode. This seems odd to me as I thought I would also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jun 2015 02:33:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7850/nrf51822-authenticate-and-encrypt-functions" /><item><title>RE: NRF51822 Authenticate and Encrypt functions</title><link>https://devzone.nordicsemi.com/thread/27978?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2015 02:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:443ba443-91d3-498c-b069-c6441ccc08c4</guid><dc:creator>tnesheim</dc:creator><description>&lt;p&gt;Thanks for your help, this cleared things up for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 Authenticate and Encrypt functions</title><link>https://devzone.nordicsemi.com/thread/27977?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2015 05:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc00685d-9553-4267-8f9e-957632b2a057</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you are right that the link will always be encrypted when using the bluetooth way of authenticating.&lt;/p&gt;
&lt;p&gt;While doing authentication the link is actually encrypted in the process with the link settings that you decided. Thus another encryption is not necessary. If you at a later point disconnect, or would like to do a key refresh of the link. Then you can use the &lt;code&gt;sd_ble_gap_encrypt(..)&lt;/code&gt; with the keys that you received in the &lt;code&gt;BLE_GAP_EVT_AUTH_STATUS&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The only way of authenticating without encryption is to distribute IRK or CSRK to identify that the peer device is actually a device that you have authenticated with previously. CSRK is something that we don&amp;#39;t support.&lt;/p&gt;
&lt;p&gt;What you could do, is to implement some sort of proprietary authentication if you control the app on both sides of the link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>