Home
last modified time | relevance | path

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

/linux/net/bluetooth/
H A Dsmp.c112 struct smp_ltk *ltk; member
217 const u8 a1[7], const u8 a2[7], u8 mackey[16], u8 ltk[16]) in smp_f5()
259 err = smp_aes_cmac(t, m, sizeof(m), ltk); in smp_f5()
263 SMP_DBG("ltk %16phN", ltk); in smp_f5()
746 if (smp->ltk && smp->ltk->type == SMP_LTK_P256_DEBUG && in smp_chan_destroy()
748 list_del_rcu(&smp->ltk->list); in smp_chan_destroy()
749 kfree_rcu(smp->ltk, rcu); in smp_chan_destroy()
750 smp->ltk in smp_chan_destroy()
1259 struct smp_ltk *ltk; smp_distribute_keys() local
2514 struct smp_ltk *ltk; smp_cmd_initiator_ident() local
3584 u8 mackey[16], ltk[16]; test_f5() local
[all...]
H A Dhci_debugfs.c838 struct smp_ltk *ltk; in long_term_keys_show() local
841 list_for_each_entry_rcu(ltk, &hdev->long_term_keys, list) in long_term_keys_show()
843 &ltk->bdaddr, ltk->bdaddr_type, ltk->authenticated, in long_term_keys_show()
844 ltk->type, ltk->enc_size, __le16_to_cpu(ltk->ediv), in long_term_keys_show()
845 __le64_to_cpu(ltk->rand), 16, ltk in long_term_keys_show()
[all...]
H A Dsmp.h76 __u8 ltk[16]; member
H A Dhci_event.c6758 struct smp_ltk *ltk; in hci_le_ltk_request_evt() local
6768 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
6769 if (!ltk) in hci_le_ltk_request_evt()
6772 if (smp_ltk_is_sc(ltk)) { in hci_le_ltk_request_evt()
6778 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
6782 memcpy(cp.ltk, ltk->val, ltk->enc_size); in hci_le_ltk_request_evt()
6783 memset(cp.ltk + ltk->enc_size, 0, sizeof(cp.ltk) - ltk->enc_size); in hci_le_ltk_request_evt()
6786 conn->pending_sec_level = smp_ltk_sec_level(ltk); in hci_le_ltk_request_evt()
6788 conn->enc_key_size = ltk->enc_size; in hci_le_ltk_request_evt()
6798 if (ltk->type == SMP_STK) { in hci_le_ltk_request_evt()
[all …]
H A Dhci_conn.c602 __u8 ltk[16], __u8 key_size) in hci_le_start_enc()
614 memcpy(cp.ltk, ltk, key_size); in hci_sco_setup()
3393 struct smp_ltk *ltk; in hci_conn_key_enc_size()
3395 ltk = hci_find_ltk(conn->hdev, &conn->dst, conn->dst_type, in hci_conn_key_enc_size()
3397 if (!ltk)
3400 return &ltk->enc_size; in hci_ethtool_ts_info()
3385 struct smp_ltk *ltk; hci_conn_key_enc_size() local
H A Dmgmt.c3222 /* Abort any ongoing SMP pairing. Removes ltk and irk if they exist. */ in unpair_device()
9893 static u8 mgmt_ltk_type(struct smp_ltk *ltk) in mgmt_ltk_type() argument
9895 switch (ltk->type) { in mgmt_ltk_type()
9898 if (ltk->authenticated) in mgmt_ltk_type()
9902 if (ltk->authenticated) in mgmt_ltk_type()
/linux/include/net/bluetooth/
H A Dhci.h1780 __u8 ltk[16]; member
1786 __u8 ltk[16]; member
H A Dhci_core.h2532 __u8 ltk[16], __u8 key_size);