Lines Matching refs:link_key
922 struct bt_keys_link_key *link_key; in sc_derive_link_key() local
933 link_key = bt_keys_get_link_key(&conn->le.dst.a); in sc_derive_link_key()
934 if (!link_key) { in sc_derive_link_key()
946 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
954 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
959 if (smp_h6(ilk, lebr, link_key->val)) { in sc_derive_link_key()
960 bt_keys_link_key_clear(link_key); in sc_derive_link_key()
963 link_key->flags |= BT_LINK_KEY_SC; in sc_derive_link_key()
966 link_key->flags |= BT_LINK_KEY_AUTHENTICATED; in sc_derive_link_key()
968 link_key->flags &= ~BT_LINK_KEY_AUTHENTICATED; in sc_derive_link_key()
1084 struct bt_keys_link_key *link_key = conn->br.link_key; in smp_br_derive_ltk() local
1091 if (!link_key) { in smp_br_derive_ltk()
1119 if (smp_h7(salt, link_key->val, ilk)) { in smp_br_derive_ltk()
1120 bt_keys_link_key_clear(link_key); in smp_br_derive_ltk()
1127 if (smp_h6(link_key->val, tmp2, ilk)) { in smp_br_derive_ltk()
1142 if (link_key->flags & BT_LINK_KEY_AUTHENTICATED) { in smp_br_derive_ltk()