Home
last modified time | relevance | path

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

/linux-6.1.9/net/bluetooth/
Dsmp.c115 struct smp_ltk *ltk; member
233 const u8 a2[7], u8 mackey[16], u8 ltk[16]) in smp_f5()
275 err = aes_cmac(tfm_cmac, t, m, sizeof(m), ltk); in smp_f5()
279 SMP_DBG("ltk %16phN", ltk); in smp_f5()
765 if (smp->ltk && smp->ltk->type == SMP_LTK_P256_DEBUG && in smp_chan_destroy()
767 list_del_rcu(&smp->ltk->list); in smp_chan_destroy()
768 kfree_rcu(smp->ltk, rcu); in smp_chan_destroy()
769 smp->ltk = NULL; in smp_chan_destroy()
774 if (smp->ltk) { in smp_chan_destroy()
775 list_del_rcu(&smp->ltk->list); in smp_chan_destroy()
[all …]
Dhci_debugfs.c833 struct smp_ltk *ltk; in long_term_keys_show() local
836 list_for_each_entry_rcu(ltk, &hdev->long_term_keys, list) in long_term_keys_show()
838 &ltk->bdaddr, ltk->bdaddr_type, ltk->authenticated, in long_term_keys_show()
839 ltk->type, ltk->enc_size, __le16_to_cpu(ltk->ediv), in long_term_keys_show()
840 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
Dsmp.h79 __u8 ltk[16]; member
Dhci_event.c6596 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
6606 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
6607 if (!ltk) in hci_le_ltk_request_evt()
6610 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
6616 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
6620 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt()
6621 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt()
6624 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
6626 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
6636 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
[all …]
Dhci_conn.c600 __u8 ltk[16], __u8 key_size) in hci_le_start_enc()
612 memcpy(cp.ltk, ltk, key_size); in hci_le_start_enc()
Dmgmt.c9531 static u8 mgmt_ltk_type(struct smp_ltk *ltk) in mgmt_ltk_type() argument
9533 switch (ltk->type) { in mgmt_ltk_type()
9536 if (ltk->authenticated) in mgmt_ltk_type()
9540 if (ltk->authenticated) in mgmt_ltk_type()
/linux-6.1.9/include/net/bluetooth/
Dhci.h1744 __u8 ltk[16]; member
1750 __u8 ltk[16]; member
Dhci_core.h2099 __u8 ltk[16], __u8 key_size);