Home
last modified time | relevance | path

Searched refs:ltk (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/net/bluetooth/
Dsmp.c117 struct smp_ltk *ltk; member
235 const u8 a2[7], u8 mackey[16], u8 ltk[16]) in smp_f5()
277 err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk); in smp_f5()
281 SMP_DBG("ltk %16phN", ltk); in smp_f5()
767 if (smp->ltk && smp->ltk->type == SMP_LTK_P256_DEBUG && in smp_chan_destroy()
769 list_del_rcu(&smp->ltk->list); in smp_chan_destroy()
770 kfree_rcu(smp->ltk, rcu); in smp_chan_destroy()
771 smp->ltk = NULL; in smp_chan_destroy()
776 if (smp->ltk) { in smp_chan_destroy()
777 list_del_rcu(&smp->ltk->list); in smp_chan_destroy()
[all …]
Dhci_debugfs.c834 struct smp_ltk *ltk; in long_term_keys_show() local
837 list_for_each_entry_rcu(ltk, &hdev->long_term_keys, list) in long_term_keys_show()
839 &ltk->bdaddr, ltk->bdaddr_type, ltk->authenticated, in long_term_keys_show()
840 ltk->type, ltk->enc_size, __le16_to_cpu(ltk->ediv), in long_term_keys_show()
841 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
Dsmp.h79 __u8 ltk[16]; member
Dhci_event.c6709 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
6719 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
6720 if (!ltk) in hci_le_ltk_request_evt()
6723 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
6729 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
6733 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt()
6734 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt()
6737 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
6739 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
6749 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
[all …]
Dhci_conn.c573 __u8 ltk[16], __u8 key_size) in hci_le_start_enc()
585 memcpy(cp.ltk, ltk, key_size); in hci_le_start_enc()
Dmgmt.c9545 static u8 mgmt_ltk_type(struct smp_ltk *ltk) in mgmt_ltk_type() argument
9547 switch (ltk->type) { in mgmt_ltk_type()
9550 if (ltk->authenticated) in mgmt_ltk_type()
9554 if (ltk->authenticated) in mgmt_ltk_type()
/linux-6.6.21/include/net/bluetooth/
Dhci.h1784 __u8 ltk[16]; member
1790 __u8 ltk[16]; member
Dhci_core.h2288 __u8 ltk[16], __u8 key_size);