Home
last modified time | relevance | path

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

/system/bt/stack/test/
Dcrypto_toolbox_test.cc351 Octet16 link_key = ltk_to_link_key(LTK, true); in TEST() local
352 EXPECT_EQ(expected_link_key, link_key); in TEST()
366 Octet16 link_key = ltk_to_link_key(LTK, false); in TEST() local
367 EXPECT_EQ(expected_link_key, link_key); in TEST()
372 Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, in TEST() local
378 std::reverse(std::begin(link_key), std::end(link_key)); in TEST()
381 Octet16 ltk = link_key_to_ltk(link_key, true); in TEST()
387 Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, in TEST() local
393 std::reverse(std::begin(link_key), std::end(link_key)); in TEST()
396 Octet16 ltk = link_key_to_ltk(link_key, false); in TEST()
/system/bt/stack/smp/
Dcrypto_toolbox.h38 extern Octet16 smp_calculate_link_key_to_ltk(const Octet16& link_key,
Dsmp_keys.cc965 Octet16 link_key = in smp_calculate_link_key_from_long_term_key() local
992 Octet16 notif_link_key = link_key; in smp_calculate_link_key_from_long_term_key()
1027 std::reverse_copy(p_dev_rec->link_key.begin(), p_dev_rec->link_key.end(), in smp_calculate_long_term_key_from_link_key()
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc170 Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7) { in link_key_to_ltk() argument
175 iltk = h7(salt, link_key); in link_key_to_ltk()
179 iltk = h6(link_key, keyID_tmp2); in link_key_to_ltk()
Dcrypto_toolbox.h35 extern Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7);
/system/bt/btif/src/
Dbtif_storage.cc418 LinkKey link_key; in btif_in_fetch_bonded_device() local
419 size_t size = link_key.size(); in btif_in_fetch_bonded_device()
420 if (btif_config_get_bin(bdstr, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_device()
462 LinkKey link_key; in btif_in_fetch_bonded_devices() local
463 size_t size = sizeof(link_key); in btif_in_fetch_bonded_devices()
464 if (btif_config_get_bin(name, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_devices()
476 BTA_DmAddDevice(bd_addr, dev_class, link_key, 0, 0, in btif_in_fetch_bonded_devices()
820 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument
826 btif_config_set_bin(bdstr, "LinkKey", link_key.data(), link_key.size()); in btif_storage_add_bonded_device()
/system/bt/btif/include/
Dbtif_storage.h154 LinkKey link_key, uint8_t key_type,
/system/bt/bta/dm/
Dbta_dm_api.cc300 const LinkKey& link_key, tBTA_SERVICE_MASK trusted_mask, in BTA_DmAddDevice() argument
312 msg->link_key = link_key; in BTA_DmAddDevice()
Dbta_dm_int.h153 LinkKey link_key; member
Dbta_dm_act.cc729 if (msg->link_key_known) p_lc = &msg->link_key; in bta_dm_add_device()
/system/bt/stack/btm/
Dbtm_dev.cc126 p_dev_rec->link_key = *p_link_key; in BTM_SecAddDevice()
153 p_dev_rec->link_key.fill(0); in wipe_secrets_and_remove()
Dbtm_int.h253 const Octet16& link_key,
Dbtm_sec.cc1185 LinkKey* link_key) { in BTM_SecGetDeviceLinkKey() argument
1189 *link_key = p_dev_rec->link_key; in BTM_SecGetDeviceLinkKey()
4596 const Octet16& link_key, uint8_t key_type) { in btm_sec_link_key_notification() argument
4629 p_dev_rec->link_key = link_key; in btm_sec_link_key_notification()
4645 p_dev_rec->sec_bd_name, link_key, in btm_sec_link_key_notification()
4709 p_dev_rec->sec_bd_name, link_key, in btm_sec_link_key_notification()
4741 btsnd_hcic_link_key_req_reply(bda, p_dev_rec->link_key); in btm_sec_link_key_request()
5423 p_dev_rec->link_key, p_dev_rec->link_key_type); in btm_send_link_key_notif()
Dbtm_int_types.h475 LinkKey link_key; /* Device link key */ member
/system/bt/stack/include/
Dbtm_api.h1410 uint32_t trusted_mask[], LinkKey* link_key,
1449 LinkKey* link_key);
Dhcimsgs.h129 const LinkKey& link_key);
/system/bt/bta/include/
Dbta_api.h1290 const LinkKey& link_key,
/system/bt/stack/hcic/
Dhcicmds.cc208 const LinkKey& link_key) { in btsnd_hcic_link_key_req_reply() argument
219 ARRAY16_TO_STREAM(pp, link_key.data()); in btsnd_hcic_link_key_req_reply()