<?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>Device Manager Query?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18927/device-manager-query</link><description>I have been reading device manager of SDK10.0 for nrf51822 . I looked at dm_ble_evt_handler and whole device manager source code but i didn&amp;#39;t found where keys like IRK , LTK are passed. 
 My goal is to write my own device manager . I need access to LTK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2017 07:21:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18927/device-manager-query" /><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73143?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 07:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4735a4af-1ad0-4f7f-8157-ce71031988cb</guid><dc:creator>abhiarora</dc:creator><description>&lt;p&gt;I was looking at [S110] (&lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a01269.html#ga42a874a285560a4323b9a13cfa61e461)"&gt;devzone.nordicsemi.com/.../a01269.html&lt;/a&gt; Documentation of &lt;code&gt;sd_ble_gap_sec_params_reply()&lt;/code&gt;. And then i found out other definitation of it in &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a01311.html#ga7b23027c97b3df21f6cbc23170e55663"&gt;S120&lt;/a&gt;. The APIs declaration in these two documentation is different. The parameter of type &lt;code&gt;ble_gap_sec_keyset_t&lt;/code&gt; is not available in S110.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73142?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 16:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447d04e9-7f5f-4137-8be5-3a8a373df93d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I had a look. I&amp;#39;m not sure how to explain this in a better way, maybe the API documentation is clearer:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Pointer to a ble_gap_sec_keyset_t security keyset structure. Any keys distributed as a result of the ongoing security procedure will be stored into the memory referenced by the pointers inside this structure. The keys will be stored and available to the application upon reception of a BLE_GAP_EVT_AUTH_STATUS event.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is an in,out argument.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73141?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 16:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1feb4094-d5fe-46af-8200-b7855e55aab7</guid><dc:creator>abhiarora</dc:creator><description>&lt;p&gt;I have edited my question. Please have a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73140?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 11:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad88886-4fdc-454d-a80a-a84009087127</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;No, it is not in ble_gap_evt_auth_status_t. The keys will be available in the ble_gap_sec_keyset_t struct that you give a pointer to whn you call sd_ble_gap_sec_params_reply(). It should not be a NULL pointer, it should only be a NULL pointer if you do pairing, and then there will not be any LTK. The LTK is always random. You get the keys by accessing the struct that you gave a pointer to when you called sd_ble_gap_sec_params_reply() after you get the BLE_GAP_EVT_AUTH_STATUS event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73139?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 11:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e555b531-17ac-403d-8666-7d838053f02d</guid><dc:creator>abhiarora</dc:creator><description>&lt;p&gt;If i am looking into struct ble_gap_evt_auth_status_t when i receive BLE_GAP_EVT_AUTH_STATUS event. I didn&amp;#39;t find ble_gap_sec_keyset_t struct over there.
Also, if i make key pointers in struct ble_gap_sec_keyset_t NULL in a reply to BLE_GAP_EVT_SEC_PARAMS_REQUEST by calling sd_ble_gap_sec_params_reply(), does that mean the SoftDevice will generate random keys for LTK?
How can i get those keys after receiving the event BLE_GAP_EVT_AUTH_STATUS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Manager Query?</title><link>https://devzone.nordicsemi.com/thread/73138?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 10:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d59953b-fabe-4a9b-a00a-085dc347a5dc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If distributed, the keys should be available in the ble_gap_sec_keyset_t struct you give a pointer to when you call sd_ble_gap_sec_params_reply().&lt;/p&gt;
&lt;p&gt;The key should be available after you have received the BLE_GAP_EVT_AUTH_STATUS event.&lt;/p&gt;
&lt;p&gt;Also see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___j_w___m_s_c.html?cp=3_7_0_0_0_2_1_0_6"&gt;this&lt;/a&gt; MSC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>