<?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>Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65540/security-manager-and-how-to-enable-the-encryption</link><description>Hi , 
 I am using the code that is built-in and I want to know about the Security manager. I want to see the encryption is enabled or disabled. What is the command? If I want to work with the cryptography function how can I use them in the main function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Sep 2020 14:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65540/security-manager-and-how-to-enable-the-encryption" /><item><title>RE: Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/thread/270648?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 14:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a554954-5737-46db-b6f4-5e20925407ee</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;The Peer Manager and the SoftDevice handles this for you. The LTK generation is taken care of by the SoftDevice.&amp;nbsp;LTK can be accessed when you receive the BLE_GAP_EVT_AUTH_STATUS event from the SoftDevice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any keys generated and/or distributed as a result of the ongoing security procedure will be stored into the memory referenced by the pointers inside the p_sec_keyset used in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga7b23027c97b3df21f6cbc23170e55663"&gt;sd_ble_gap_sec_params_reply()&lt;/a&gt;. The keys will be stored and available to the application upon reception of a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___e_n_u_m_e_r_a_t_i_o_n_s.html#ggada486dd3c0cce897b23a887bed284fefa8958220152f7547da3b250b4f724877c"&gt;BLE_GAP_EVT_AUTH_STATUS&lt;/a&gt;&amp;nbsp;event. The Peer Manger( security_dispatcher.c) handles this, and will store the keys for you when you bond with a device.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/thread/270456?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 06:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a216b8-d7ab-4971-8552-c03f7ebdc977</guid><dc:creator>Hussain</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I mean that in ble there are phases of pairing and bonding. During these phases it establish a Long term key or symmetric key. How can I see or observe the key or the function which is taking care of it in the code? nrf5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/thread/268452?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 09:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74fbff0e-ad10-4757-9a77-4c71de388b85</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Using the Peer Manager, you set the min/max key size as input to&amp;nbsp;&lt;span&gt;pm_sec_params_set().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;    sec_param.min_key_size      = SEC_PARAM_MIN_KEY_SIZE;
    sec_param.max_key_size      = SEC_PARAM_MAX_KEY_SIZE;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What do you mean by transport the key, and key status ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/thread/268212?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 08:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05810160-6bdb-4729-bc85-380fe43bfc7b</guid><dc:creator>Hussain</dc:creator><description>&lt;p&gt;Thank you for your reply. How can I check the key size in nrf5 SDK? How can I transport the key during the pairing? How can I see the key status in the program?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Security manager and how to enable the encryption</title><link>https://devzone.nordicsemi.com/thread/268198?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 07:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbabfcc9-c7fc-4315-8a90-c0f2e4906aaf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I am using the code that is built-in and I want to know about the Security manager[/quote]
&lt;p&gt;Are you using the SoftDevice and the nRF5 SDK? If yes, I recommend using the Peer Manager to handle this. Call the function &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__peer__manager.html#ga46dfaf46c0aa94fc15017d42b3a2e514"&gt;pm_conn_secure()&lt;/a&gt;&lt;span&gt;&amp;nbsp;to encrypt the link. Use the function &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__peer__manager.html#ga5a2760d50178059a4156f00bb6c0eb56"&gt;pm_conn_sec_status_get()&lt;/a&gt;&amp;nbsp;to get the security status of a connection. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_pm_functionality.html"&gt;this link&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>