link_key
__u8 link_key[HCI_LINK_KEY_SIZE];
__u8 link_key[HCI_LINK_KEY_SIZE];
struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
struct link_key *hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn,
void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key,
struct link_key *key;
struct link_key *key, *tmp;
struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr)
struct link_key *k;
struct link_key *hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn,
struct link_key *key, *old_key;
struct link_key *key;
struct link_key *key;
struct link_key *key;
struct link_key *key;
memcpy(cp.link_key, key->val, HCI_LINK_KEY_SIZE);
struct link_key *key;
if (!crypto_memneq(ev->link_key, ZERO_KEY, HCI_LINK_KEY_SIZE)) {
key = hci_add_link_key(hdev, conn, &ev->bdaddr, ev->link_key,
void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key,
if (smp->link_key) {
struct link_key *key;
smp->link_key, type, 0, &persistent);
smp->link_key = kzalloc(16, GFP_KERNEL);
if (!smp->link_key)
if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) {
kfree_sensitive(smp->link_key);
smp->link_key = NULL;
if (smp_h6(smp->tfm_cmac, smp->tk, tmp1, smp->link_key)) {
kfree_sensitive(smp->link_key);
smp->link_key = NULL;
if (smp_h6(smp->tfm_cmac, smp->link_key, lebr, smp->link_key)) {
kfree_sensitive(smp->link_key);
smp->link_key = NULL;
u8 *link_key;
struct link_key *key;
kfree_sensitive(smp->link_key);