/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/ |
D | legacy_pairing.rs | 48 let link_key = [0; 16]; in initiate() localVariable 49 let auth_result = authentication::send_challenge(ctx, 0, link_key).await; in initiate() 50 authentication::receive_challenge(ctx, link_key).await; in initiate() 59 link_key, in initiate() 90 let link_key = [0; 16]; in respond() localVariable 91 authentication::receive_challenge(ctx, link_key).await; in respond() 92 let auth_result = authentication::send_challenge(ctx, 0, link_key).await; in respond() 101 link_key, in respond()
|
D | secure_simple_pairing.rs | 570 let link_key = [0; 16]; in initiate() localVariable 571 let auth_result = authentication::send_challenge(ctx, 0, link_key).await; in initiate() 572 authentication::receive_challenge(ctx, link_key).await; in initiate() 582 link_key, in initiate() 827 let link_key = [0; 16]; in respond() localVariable 828 authentication::receive_challenge(ctx, link_key).await; in respond() 829 let auth_result = authentication::send_challenge(ctx, 0, link_key).await; in respond() 839 link_key, in respond()
|
/packages/modules/Bluetooth/system/gd/security/record/ |
D | security_record_storage_test.cc | 68 std::array<uint8_t, 16> link_key = { in TEST_F() local 72 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() 82 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 129 std::array<uint8_t, 16> link_key = { in TEST_F() local 133 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() 144 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 150 link_key = record->GetLinkKey(); in TEST_F() 155 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 162 std::array<uint8_t, 16> link_key = { in TEST_F() local 166 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() [all …]
|
D | security_record.h | 46 void SetLinkKey(std::array<uint8_t, 16> link_key, hci::KeyType key_type) { in SetLinkKey() argument 47 link_key_ = link_key; in SetLinkKey()
|
/packages/modules/Bluetooth/system/gd/security/pairing/ |
D | classic_pairing_handler_unittest.cc | 231 void ReceiveLinkKeyNotification(hci::AddressWithType device, std::array<uint8_t, 16> link_key, in ReceiveLinkKeyNotification() argument 233 …hci_layer_->IncomingEvent(hci::LinkKeyNotificationBuilder::Create(device.GetAddress(), link_key, k… in ReceiveLinkKeyNotification() 318 std::array<uint8_t, 16> link_key = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; in TEST_F() local 320 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 321 ASSERT_EQ(link_key, security_record_->GetLinkKey()); in TEST_F() 356 std::array<uint8_t, 16> link_key = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; in TEST_F() local 358 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 359 ASSERT_EQ(link_key, security_record_->GetLinkKey()); in TEST_F() 394 std::array<uint8_t, 16> link_key = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; in TEST_F() local 396 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | crypto_toolbox_test.cc | 312 Octet16 link_key = ltk_to_link_key(LTK, true); in TEST() local 313 EXPECT_EQ(expected_link_key, link_key); in TEST() 326 Octet16 link_key = ltk_to_link_key(LTK, false); in TEST() local 327 EXPECT_EQ(expected_link_key, link_key); in TEST() 332 …Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x0… in TEST() local 336 std::reverse(std::begin(link_key), std::end(link_key)); in TEST() 339 Octet16 ltk = link_key_to_ltk(link_key, true); in TEST() 345 …Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x0… in TEST() local 349 std::reverse(std::begin(link_key), std::end(link_key)); in TEST() 352 Octet16 ltk = link_key_to_ltk(link_key, false); in TEST()
|
D | crypto_toolbox.cc | 180 Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7) { in link_key_to_ltk() argument 185 iltk = h7(salt, link_key); in link_key_to_ltk() 189 iltk = h6(link_key, keyID_tmp2); in link_key_to_ltk()
|
D | crypto_toolbox.h | 71 bluetooth::hci::Octet16 link_key_to_ltk(const bluetooth::hci::Octet16& link_key, bool use_h7);
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_storage.cc | 423 LinkKey link_key; in btif_in_fetch_bonded_device() local 424 size_t size = link_key.size(); in btif_in_fetch_bonded_device() 425 if (btif_config_get_bin(bdstr, BTIF_STORAGE_KEY_LINK_KEY, link_key.data(), in btif_in_fetch_bonded_device() 464 LinkKey link_key; in btif_in_fetch_bonded_devices() local 465 size_t size = sizeof(link_key); in btif_in_fetch_bonded_devices() 466 if (btif_config_get_bin(name, BTIF_STORAGE_KEY_LINK_KEY, link_key.data(), in btif_in_fetch_bonded_devices() 478 BTA_DmAddDevice(bd_addr, dev_class, link_key, (uint8_t)linkkey_type, in btif_in_fetch_bonded_devices() 813 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument 820 ret &= btif_config_set_bin(bdstr, BTIF_STORAGE_KEY_LINK_KEY, link_key.data(), in btif_storage_add_bonded_device() 821 link_key.size()); in btif_storage_add_bonded_device()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_dev.cc | 65 p_dev_rec->sec_rec.link_key.fill(0); in wipe_secrets_and_remove() 86 LinkKey link_key, uint8_t key_type, uint8_t pin_length) { in BTM_SecAddDevice() argument 124 p_dev_rec->sec_rec.link_key = link_key; in BTM_SecAddDevice()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_sec_api.cc | 141 void BTA_DmAddDevice(RawAddress bd_addr, DEV_CLASS dev_class, LinkKey link_key, in BTA_DmAddDevice() argument 145 dev_class, link_key, key_type, pin_length); in BTA_DmAddDevice()
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_storage.h | 152 std::function<bt_status_t(RawAddress* remote_bd_addr, LinkKey link_key, 157 bt_status_t operator()(RawAddress* remote_bd_addr, LinkKey link_key, in operator() 159 return body(remote_bd_addr, link_key, key_type, pin_length); in operator()
|
D | mock_bta_dm_api.h | 86 const LinkKey& link_key, uint8_t key_type, 92 const LinkKey& link_key, uint8_t key_type, in operator() 94 body(bd_addr, dev_class, link_key, key_type, pin_length); in operator()
|
D | mock_stack_hcic_hcicmds.h | 228 std::function<void(const RawAddress& bd_addr, const LinkKey& link_key)> body{ 230 void operator()(const RawAddress& bd_addr, const LinkKey& link_key) { in operator() 231 body(bd_addr, link_key); in operator()
|
D | mock_btif_storage.cc | 163 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument 167 remote_bd_addr, link_key, key_type, pin_length); in btif_storage_add_bonded_device()
|
D | mock_bta_dm_api.cc | 116 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument 119 test::mock::bta_dm_api::BTA_DmAddDevice(bd_addr, dev_class, link_key, in BTA_DmAddDevice()
|
D | mock_stack_btm_sec.h | 715 std::function<void(const RawAddress& p_bda, const Octet16& link_key, 719 void operator()(const RawAddress& p_bda, const Octet16& link_key, in operator() 721 body(p_bda, link_key, key_type); in operator()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | btm_sec_api.h | 47 LinkKey link_key, uint8_t key_type, uint8_t pin_length);
|
D | sec_hci_link_interface.h | 44 const Octet16& link_key, uint8_t key_type);
|
D | security_client_callbacks.h | 101 LinkKey link_key, uint8_t key_type,
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_keys.cc | 986 Octet16 link_key = in smp_calculate_link_key_from_long_term_key() local 1014 std::reverse_copy(link_key.begin(), link_key.end(), notif_link_key.begin()); in smp_calculate_link_key_from_long_term_key() 1046 std::reverse_copy(p_dev_rec->sec_rec.link_key.begin(), in smp_calculate_long_term_key_from_link_key() 1047 p_dev_rec->sec_rec.link_key.end(), rev_link_key.begin()); in smp_calculate_long_term_key_from_link_key()
|
/packages/modules/Bluetooth/system/gd/security/channel/ |
D | security_manager_channel_unittest.cc | 471 std::array<uint8_t, 16> link_key = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; in TEST_F() local 473 …hci::LinkKeyNotificationBuilder::Create(device_.GetAddress(), link_key, hci::KeyType::DEBUG_COMBIN… in TEST_F() 503 std::array<uint8_t, 16> link_key = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5}; in TEST_F() local 504 auto packet = hci::LinkKeyRequestReplyBuilder::Create(device_.GetAddress(), link_key); in TEST_F()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | BUILD.gn | 35 "link_key.cc",
|
D | Android.bp | 28 "link_key.cc",
|
/packages/modules/Bluetooth/tools/rootcanal/rust/test/SP/ |
D | BV-05-C.in | 84 link_key: [0; 16],
|