<?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 is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27564/what-is-different-between-pairing-vs-bonding-stk-vs-ltk</link><description>hi all ,
I am looking out theory about SM layer in BLE . I read CoreV5.0 but I do not understand much about pairing , bonding , STK , LTK . Can you give me some document about that ? Thank !!!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2017 11:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27564/what-is-different-between-pairing-vs-bonding-stk-vs-ltk" /><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108828?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 11:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43025044-040f-4c33-981f-3c4ace4f5bdf</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need to have paired or bonded to encrypt the link, if you haven&amp;#39;t the link will not be encrypted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108827?ContentTypeID=1</link><pubDate>Sat, 02 Dec 2017 05:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c739ad1-9f78-4faf-9008-2306218ef05c</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi , in connection nomal (don&amp;#39;t pairing and don&amp;#39;t bonding) , The Link Layer provides encryption and authentication using Counter with Cipher Block Chaining-Message Authentication Code (CCM) Mode . CCM requires a new temporal key whenever encryption is started . So where is new temporal key create ? Is it session key ? And where is session key create (if don&amp;#39;t pairing and bonding , won&amp;#39;t have STK and LTK )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108825?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 12:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40960d09-26a5-4555-9198-757814f7da17</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Those examples doesn&amp;#39;t support pairing. Take a look at for example ble_app_hrs. I would also recommend to study the MSCs, for example &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.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=2_3_1_1_0_2_1_3_10_7_0"&gt;this&lt;/a&gt; one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108822?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 11:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e56d009-6359-4443-af38-da9ac4a9206b</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi , I am working with platform NRF52832 of Nodric . I run my board with example of BLE such as : NUS service, LBS sevice ... and board connect with each other and send data . So , I think my board don&amp;#39;t pairing and bonding , it only connect normal in GAP layer .
So , I have questions , Is the connection between my boards encrypted ?? And how PDUs package in Link Layer encrypted  by ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108821?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 11:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1079ad1e-c1e7-40de-b755-3ee68c4653a2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The link can either be encrypted by pairing, or if you have previously bonded, you can encrypt the link with LTK.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I&amp;#39;m don&amp;#39;t know how to answer this, they are two different layers in the stack. Could you be more specific?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then you need to pair or bond...&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108824?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 10:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75c5ddf-a720-4e40-a5a5-7fce5ed5fab9</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Thank for reply , I have question .&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If don&amp;#39;t pairing or bonding , Is the Link Layer connection encrypt ? Then, Is the PDU package in Link Layer encrypted for send from device A to device B ?&lt;/li&gt;
&lt;li&gt;What is diffence between Link Layer connection and GAP connection ? or they are one&lt;/li&gt;
&lt;li&gt;If don&amp;#39;t pairing and bonding , LL hasn&amp;#39;t STK or LTK , so how LL encrypt by ?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108820?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 10:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34fb4239-9a35-4964-899c-1f09cd5ca270</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;If you have bonded LTK will be used for subsequent connections. Not the connection when you pair.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Correct.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108826?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 09:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f22fbd37-47c1-4cbb-8b77-f085860c75db</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi , as I know . In phase 2 of pairing/bonding , has 2 option&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;LE legacy pairing , STK will be created for encrypt connection , then if pairing , STK is sent to LL for create session key . If bonding , LTK is created replace STK , then LTK is sent to LL for create session key&lt;/li&gt;
&lt;li&gt;if LE secure connection pairing , LTK will be created for encrypt connection and sent to LL&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Is it correct ? thank !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108823?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 16:07:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d824c48-241b-4bea-96cc-89466dcb24f1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;There is no LTK in pairing. Only in bonding.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In bonding there is only one LTK. This is used in all subsequent connections.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108819?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 15:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:548ad885-b5b4-4c73-b82e-cb2794adce92</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi , sorry because my English isn&amp;#39;t good . I want to ask :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In pairing , each connect , LTK is created and diffenrence value LTK privious ?&lt;/li&gt;
&lt;li&gt;In bonding , LTK1 is stored for the next connection (2nd) . So in the connection 2 , is new LTK2 created ?  Or in the next connection (3nd) still LTK1 for encrypt&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108818?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 14:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6ba121-d1ef-49e6-899f-ae0d1a791b2a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;1)What do you mean by each re-connect is secure? If you don&amp;#39;t bond you have to pair every time, if this is secure or not depends on &lt;em&gt;how&lt;/em&gt; you pair, if you are doing Just Works, Passkey Entry, OOB, LESC and so on. There is no LTK generation when you don&amp;#39;t bond.&lt;/p&gt;
&lt;p&gt;2)What do you mean by when the new LTK is created? The LTK is created once, then this is used to encrypt the link in future connections.&lt;/p&gt;
&lt;p&gt;3)You have to be more specific on what it is you don&amp;#39;t understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108830?ContentTypeID=1</link><pubDate>Sun, 26 Nov 2017 01:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e0cf3d2-288b-4b65-be8e-d644ce50fb0a</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi Emil Lenngren , I want to ask some question .&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In pairing , keys don&amp;#39;t distribute , so each re-connect secure , we will re-pairing , so the new STK and LTK is created , so have we changed ?&lt;/li&gt;
&lt;li&gt;In bonding , LTK is stored . So each reconnect , old - LTK will be used . So , when the new LTK is created ?&lt;/li&gt;
&lt;li&gt;Can you discribe for me the process phase 3 performance between master and slave and  how the LTK is used in Link layer ?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thank !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108817?ContentTypeID=1</link><pubDate>Sat, 25 Nov 2017 03:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e47533b-385d-4e48-ba9c-d5414c99330a</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Thank for reply , I also want to ask about STK and LTK . As I understand , STK is used to encrypt the connection , which will be used for distribute LTK , EDIV , Rand , IRK , CSRK , public Address between Host of Master and Host of Slave .  Then , host send LTK to Link layer for create session key , session key is used to encrypt all PDUs in Link Layer . I understand that is correct ? Pls help me , thank !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is different between pairing vs bonding , STK vs LTK</title><link>https://devzone.nordicsemi.com/thread/108816?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 20:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c6a88cf-9b6c-4da6-b3e6-251a076e3886</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;&lt;strong&gt;Pairing&lt;/strong&gt;: Select a key, use this key to encrypt data between these devices. When the devices are disconnected, everything is forgotten and it is if the devices never knew each other. The next time you want to talk secretly to the same device, everything has to be done all over again.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bonding&lt;/strong&gt;: First, do Pairing to have a secure link, then exchange keys for the next time we meet, so that we don&amp;#39;t need to perform Pairing again to have a secure link.&lt;/p&gt;
&lt;p&gt;By doing bonding, the user will (for example) not have to enter the 6 digit passkey every time the smartwatch is connected to the phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>