/system/bt/gd/security/record/ |
D | security_record_storage_test.cc | 63 std::array<uint8_t, 16> link_key = { in TEST_F() local 67 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() 77 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 124 std::array<uint8_t, 16> link_key = { in TEST_F() local 128 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() 139 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 145 link_key = record->GetLinkKey(); in TEST_F() 150 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F() 157 std::array<uint8_t, 16> link_key = { in TEST_F() local 161 record->SetLinkKey(link_key, hci::KeyType::DEBUG_COMBINATION); in TEST_F() [all …]
|
D | security_record.h | 51 void SetLinkKey(std::array<uint8_t, 16> link_key, hci::KeyType key_type) { in SetLinkKey() argument 52 link_key_ = link_key; in SetLinkKey()
|
/system/bt/gd/security/pairing/ |
D | classic_pairing_handler_unittest.cc | 230 void ReceiveLinkKeyNotification(hci::AddressWithType device, std::array<uint8_t, 16> link_key, in ReceiveLinkKeyNotification() argument 232 …hci_layer_->IncomingEvent(hci::LinkKeyNotificationBuilder::Create(device.GetAddress(), link_key, k… in ReceiveLinkKeyNotification() 317 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 319 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 320 ASSERT_EQ(link_key, security_record_->GetLinkKey()); in TEST_F() 355 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 357 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 358 ASSERT_EQ(link_key, security_record_->GetLinkKey()); in TEST_F() 393 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 395 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() [all …]
|
/system/bt/stack/test/ |
D | crypto_toolbox_test.cc | 351 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/gd/crypto_toolbox/ |
D | crypto_toolbox_test.cc | 311 Octet16 link_key = ltk_to_link_key(LTK, true); in TEST() local 312 EXPECT_EQ(expected_link_key, link_key); in TEST() 325 Octet16 link_key = ltk_to_link_key(LTK, false); in TEST() local 326 EXPECT_EQ(expected_link_key, link_key); in TEST() 331 …Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x0… in TEST() local 335 std::reverse(std::begin(link_key), std::end(link_key)); in TEST() 338 Octet16 ltk = link_key_to_ltk(link_key, true); in TEST() 344 …Octet16 link_key{0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x0… in TEST() local 348 std::reverse(std::begin(link_key), std::end(link_key)); in TEST() 351 Octet16 ltk = link_key_to_ltk(link_key, false); in TEST()
|
D | crypto_toolbox.cc | 156 Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7) { in link_key_to_ltk() argument 161 iltk = h7(salt, link_key); in link_key_to_ltk() 165 iltk = h6(link_key, keyID_tmp2); in link_key_to_ltk()
|
D | crypto_toolbox.h | 51 extern Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7);
|
/system/bt/test/mock/ |
D | mock_stack_crypto_toolbox.h | 157 std::function<Octet16(const Octet16& link_key, bool use_h7)> body{ 158 [this](const Octet16& link_key, bool use_h7) { return octet16; }}; 159 Octet16 operator()(const Octet16& link_key, bool use_h7) { in operator() 160 return body(link_key, use_h7); in operator()
|
D | mock_stack_crypto_toolbox.cc | 91 Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7) { in link_key_to_ltk() argument 93 return test::mock::stack_crypto_toolbox::link_key_to_ltk(link_key, use_h7); in link_key_to_ltk()
|
D | mock_bta_dm_api.cc | 66 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument
|
D | mock_btif_storage.cc | 74 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument
|
/system/bt/stack/smp/ |
D | crypto_toolbox.h | 38 extern Octet16 smp_calculate_link_key_to_ltk(const Octet16& link_key,
|
D | smp_keys.cc | 955 Octet16 link_key = in smp_calculate_link_key_from_long_term_key() local 983 std::reverse_copy(link_key.begin(), link_key.end(), notif_link_key.begin()); in smp_calculate_link_key_from_long_term_key() 1018 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/include/ |
D | sec_hci_link_interface.h | 42 const Octet16& link_key, uint8_t key_type);
|
/system/bt/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 171 Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7) { in link_key_to_ltk() argument 176 iltk = h7(salt, link_key); in link_key_to_ltk() 180 iltk = h6(link_key, keyID_tmp2); in link_key_to_ltk()
|
D | crypto_toolbox.h | 38 extern Octet16 link_key_to_ltk(const Octet16& link_key, bool use_h7);
|
/system/bt/bta/dm/ |
D | bta_dm_api.cc | 236 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument 244 msg->link_key = link_key; in BTA_DmAddDevice()
|
/system/bt/btif/src/ |
D | btif_storage.cc | 414 LinkKey link_key; in btif_in_fetch_bonded_device() local 415 size_t size = link_key.size(); in btif_in_fetch_bonded_device() 416 if (btif_config_get_bin(bdstr, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_device() 453 LinkKey link_key; in btif_in_fetch_bonded_devices() local 454 size_t size = sizeof(link_key); in btif_in_fetch_bonded_devices() 455 if (btif_config_get_bin(name, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_devices() 465 BTA_DmAddDevice(bd_addr, dev_class, link_key, (uint8_t)linkkey_type, in btif_in_fetch_bonded_devices() 807 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument 813 btif_config_set_bin(bdstr, "LinkKey", link_key.data(), link_key.size()); in btif_storage_add_bonded_device()
|
/system/bt/gd/hci/ |
D | BUILD.gn | 32 "link_key.cc",
|
D | Android.bp | 27 "link_key.cc",
|
/system/bt/stack/btm/ |
D | security_device_record.h | 216 LinkKey link_key; /* Device link key */ member 236 const Octet16& link_key,
|
D | btm_dev.cc | 106 p_dev_rec->link_key = *p_link_key; in BTM_SecAddDevice() 126 p_dev_rec->link_key.fill(0); in wipe_secrets_and_remove()
|
D | btm_sec.h | 657 const Octet16& link_key, uint8_t key_type);
|
/system/bt/btif/include/ |
D | btif_storage.h | 155 LinkKey link_key, uint8_t key_type,
|
/system/bt/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()
|