Searched refs:ltk (Results 1 – 6 of 6) sorted by relevance
/net/bluetooth/ |
D | smp.c | 116 struct smp_ltk *ltk; member 238 const u8 a2[7], u8 mackey[16], u8 ltk[16]) in smp_f5() 280 err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk); in smp_f5() 284 SMP_DBG("ltk %16phN", ltk); in smp_f5() 772 if (smp->ltk && smp->ltk->type == SMP_LTK_P256_DEBUG && in smp_chan_destroy() 774 list_del_rcu(&smp->ltk->list); in smp_chan_destroy() 775 kfree_rcu(smp->ltk, rcu); in smp_chan_destroy() 776 smp->ltk = NULL; in smp_chan_destroy() 781 if (smp->ltk) { in smp_chan_destroy() 782 list_del_rcu(&smp->ltk->list); in smp_chan_destroy() [all …]
|
D | hci_debugfs.c | 772 struct smp_ltk *ltk; in long_term_keys_show() local 775 list_for_each_entry_rcu(ltk, &hdev->long_term_keys, list) in long_term_keys_show() 777 <k->bdaddr, ltk->bdaddr_type, ltk->authenticated, in long_term_keys_show() 778 ltk->type, ltk->enc_size, __le16_to_cpu(ltk->ediv), in long_term_keys_show() 779 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
|
D | smp.h | 79 __u8 ltk[16]; member
|
D | hci_event.c | 5706 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local 5716 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt() 5717 if (!ltk) in hci_le_ltk_request_evt() 5720 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt() 5726 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt() 5730 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt() 5731 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt() 5734 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt() 5736 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt() 5746 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt() [all …]
|
D | hci_conn.c | 356 __u8 ltk[16], __u8 key_size) in hci_le_start_enc() 368 memcpy(cp.ltk, ltk, key_size); in hci_le_start_enc()
|
D | mgmt.c | 7115 static u8 mgmt_ltk_type(struct smp_ltk *ltk) in mgmt_ltk_type() argument 7117 switch (ltk->type) { in mgmt_ltk_type() 7120 if (ltk->authenticated) in mgmt_ltk_type() 7124 if (ltk->authenticated) in mgmt_ltk_type()
|