Home
last modified time | relevance | path

Searched refs:link_key (Results 1 – 8 of 8) 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.c467 if (!conn->br.link_key) { in bt_hci_link_key_notify()
468 conn->br.link_key = bt_keys_get_link_key(&evt->bdaddr); in bt_hci_link_key_notify()
470 if (!conn->br.link_key) { in bt_hci_link_key_notify()
477 conn->br.link_key->flags = 0U; in bt_hci_link_key_notify()
487 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
489 memcpy(conn->br.link_key->val, evt->link_key, 16); in bt_hci_link_key_notify()
492 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
495 memcpy(conn->br.link_key->val, evt->link_key, 16); in bt_hci_link_key_notify()
498 conn->br.link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in bt_hci_link_key_notify()
501 conn->br.link_key->flags |= BT_LINK_KEY_SC; in bt_hci_link_key_notify()
[all …]
Dbr.c154 if (conn->br.link_key) { in bt_br_update_sec_level()
155 if (conn->br.link_key->flags & BT_LINK_KEY_AUTHENTICATED) { in bt_br_update_sec_level()
/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.c751 struct bt_keys_link_key *link_key; in sc_derive_link_key() local
762 link_key = bt_keys_get_link_key(&conn->le.dst.a); in sc_derive_link_key()
763 if (!link_key) { in sc_derive_link_key()
775 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
783 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
788 if (bt_crypto_h6(ilk, lebr, link_key->val)) { in sc_derive_link_key()
789 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
792 link_key->flags |= BT_LINK_KEY_SC; in sc_derive_link_key()
795 link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in sc_derive_link_key()
797 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.c1012 bt_keys_link_key_clear(conn->br.link_key); in hci_disconn_complete()
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_types.h446 uint8_t link_key[16]; member
2841 uint8_t link_key[16]; member