Searched refs:link_key (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | keys_br.c | 98 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 …]
|
D | ssp.c | 467 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 …]
|
D | br.c | 154 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/ |
D | keys.h | 226 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);
|
D | smp.c | 751 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 …]
|
D | conn_internal.h | 144 struct bt_keys_link_key *link_key; member
|
D | hci_core.c | 1012 bt_keys_link_key_clear(conn->br.link_key); in hci_disconn_complete()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | hci_types.h | 446 uint8_t link_key[16]; member 2841 uint8_t link_key[16]; member
|