Home
last modified time | relevance | path

Searched refs:link_key (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/classic/
Dkeys_br.c98 void bt_keys_link_key_clear(struct bt_keys_link_key *link_key) in bt_keys_link_key_clear() argument
104 bt_addr_copy(&le_addr.a, &link_key->addr); in bt_keys_link_key_clear()
109 LOG_DBG("%s", bt_addr_str(&link_key->addr)); in bt_keys_link_key_clear()
110 (void)memset(link_key, 0, sizeof(*link_key)); in bt_keys_link_key_clear()
132 void bt_keys_link_key_store(struct bt_keys_link_key *link_key) in bt_keys_link_key_store() argument
139 bt_addr_copy(&le_addr.a, &link_key->addr); in bt_keys_link_key_store()
141 err = bt_settings_store_link_key(&le_addr, link_key->storage_start, in bt_keys_link_key_store()
175 struct bt_keys_link_key *link_key; in link_key_set() local
197 link_key = bt_keys_get_link_key(&le_addr.a); in link_key_set()
199 if (link_key) { in link_key_set()
[all …]
Dssp.c480 if (!conn->br.link_key) { in bt_hci_link_key_notify()
481 conn->br.link_key = bt_keys_get_link_key(&evt->bdaddr); in bt_hci_link_key_notify()
483 if (!conn->br.link_key) { in bt_hci_link_key_notify()
490 conn->br.link_key->flags = 0U; in bt_hci_link_key_notify()
500 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
502 memcpy(conn->br.link_key->val, evt->link_key, 16); in bt_hci_link_key_notify()
505 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
508 memcpy(conn->br.link_key->val, evt->link_key, 16); in bt_hci_link_key_notify()
511 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
514 conn->br.link_key->flags |= BT_LINK_KEY_SC; in bt_hci_link_key_notify()
[all …]
Dbr.c156 if (conn->br.link_key) { in bt_br_update_sec_level()
157 if (conn->br.link_key->flags & BT_LINK_KEY_AUTHENTICATED) { in bt_br_update_sec_level()
Dl2cap_br.c824 chan->conn->encrypt && chan->conn->br.link_key && in l2cap_br_conn_security()
825 (chan->conn->br.link_key->flags & BT_LINK_KEY_AUTHENTICATED)) { in l2cap_br_conn_security()
/Zephyr-latest/subsys/bluetooth/host/
Dkeys.h226 void bt_keys_link_key_clear(struct bt_keys_link_key *link_key);
228 void bt_keys_link_key_store(struct bt_keys_link_key *link_key);
Dsmp.c757 struct bt_keys_link_key *link_key; in sc_derive_link_key() local
768 link_key = bt_keys_get_link_key(&conn->le.dst.a); in sc_derive_link_key()
769 if (!link_key) { in sc_derive_link_key()
781 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
789 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
794 if (bt_crypto_h6(ilk, lebr, link_key->val)) { in sc_derive_link_key()
795 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
798 link_key->flags |= BT_LINK_KEY_SC; in sc_derive_link_key()
801 link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in sc_derive_link_key()
803 link_key->flags &= ~BT_LINK_KEY_AUTHENTICATED; in sc_derive_link_key()
[all …]
Dconn_internal.h144 struct bt_keys_link_key *link_key; member
Dhci_core.c1018 bt_keys_link_key_clear(conn->br.link_key); in hci_disconn_complete()
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_types.h454 uint8_t link_key[16]; member
2895 uint8_t link_key[16]; member