<?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] Encryption related</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/965/nrf51822-encryption-related</link><description>this time i have some encryption related questions to ask. 
 
 I use the &amp;quot;BLE_GAP_CONN_SEC_MODE_SET_XXX&amp;quot; to enble link encryption, doese this correct?
can i set the encryption key at the peripheral side? 
 Can i emulate the MITM function between Master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Nov 2013 17:48:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/965/nrf51822-encryption-related" /><item><title>RE: [NRF51822] Encryption related</title><link>https://devzone.nordicsemi.com/thread/4597?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2013 17:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5291b312-0462-4619-bf25-71aad3c8ec11</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Terry,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You are correct, BLE_GAP_CONN_SEC_MODE_SET_? control the permission of the characteristic whether it is open or require security (the link must be encrypted).
To encrypt the link, the security information must be exchanged including TK, STK and LTK. It&amp;#39;s not possible to manually set STK and LTK it is generated randomly by the stack.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please refer to chapter 3, Part H Vol 3 in the Bluetooth Core Spec V4.0&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Both display and keyboard are supported on the Master Control Panel.
On the nRF51822, you can connect the nRF6350 LCD board, to have display. We haven&amp;#39;t got an example for keyboard, but should not be too hard to implement one.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>