Home
last modified time | relevance | path

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

/system/bt/stack/btm/
Dbtm_ble_addr.cc46 static RawAddress generate_rpa_from_irk_and_rand(const Octet16& irk, in generate_rpa_from_irk_and_rand() argument
57 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand()
107 const Octet16& irk = BTM_GetDeviceIDRoot(); in btm_gen_resolvable_private_addr() local
108 cb.Run(generate_rpa_from_irk_and_rand(irk, random)); in btm_gen_resolvable_private_addr()
147 static bool rpa_matches_irk(const RawAddress& rpa, const Octet16& irk) { in rpa_matches_irk() argument
155 Octet16 x = crypto_toolbox::aes_128(irk, &rand[0], 3); in rpa_matches_irk()
180 if (rpa_matches_irk(rpa, p_dev_rec->ble.keys.irk)) { in btm_ble_addr_resolvable()
200 if (rpa_matches_irk(*random_bda, p_dev_rec->ble.keys.irk)) { in btm_ble_match_random_bda()
Dbtm_ble_privacy.cc744 const Octet16& peer_irk = p_dev_rec->ble.keys.irk; in btm_ble_resolving_list_load_dev()
745 const Octet16& local_irk = btm_cb.devcb.id_keys.irk; in btm_ble_resolving_list_load_dev()
773 ARRAY_TO_STREAM(p, p_dev_rec->ble.keys.irk, OCTET16_LEN); in btm_ble_resolving_list_load_dev()
Dbtm_ble_adv_filter.cc614 if (!is_empty_128bit(cmd.irk)) { in BTM_LE_PF_set()
648 pid_keys.irk = cmd.irk; in BTM_LE_PF_set()
Dsecurity_device_record.h73 Octet16 irk; /* peer diverified identity root */ member
Dbtm_ble.cc196 return btm_cb.devcb.id_keys.irk; in BTM_GetDeviceIDRoot()
1144 p_rec->ble.keys.irk = p_keys->pid_key.irk; in btm_sec_save_le_key()
2014 btm_cb.devcb.id_keys.irk = in btm_ble_reset_id_impl()
/system/bt/gd/hci/
Dle_address_manager_test.cc211 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local
218 irk, in TEST_F()
233 Octet16 irk = {}; in TEST_F() local
240 irk, in TEST_F()
257 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local
264 irk, in TEST_F()
294 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in SetUp() local
301 irk, in SetUp()
Daddress_with_type.h53 bool IsRpaThatMatchesIrk(const crypto_toolbox::Octet16& irk) const { in IsRpaThatMatchesIrk() argument
62 crypto_toolbox::Octet16 computed_hash = crypto_toolbox::aes_128(irk, &prand[0], 3); in IsRpaThatMatchesIrk()
Dacl_manager.cc176 …auto irk = GetDependency<storage::StorageModule>()->GetAdapterConfig().GetLeIdentityResolvingKey(); in SetPrivacyPolicyForInitiatorAddress() local
177 if (irk.has_value()) { in SetPrivacyPolicyForInitiatorAddress()
178 rotation_irk = irk->bytes; in SetPrivacyPolicyForInitiatorAddress()
/system/bt/gd/hci/facade/
Dle_initiator_address_facade.cc59 crypto_toolbox::Octet16 irk = {}; in SetPrivacyPolicyForInitiatorAddress() local
63 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetPrivacyPolicyForInitiatorAddress()
/system/bt/include/hardware/
Dbt_common_types.h104 std::array<uint8_t, 16> irk; // 128 bit/16 octet IRK member
/system/bt/gd/security/
Dpairing_handler_le.cc387 std::optional<Octet16> irk; in ReceiveKeys() local
419 irk = std::get<IdentityInformationView>(packet).GetIdentityResolvingKey(); in ReceiveKeys()
450 .remote_irk = irk, in ReceiveKeys()
455 std::array<uint8_t, 8> rand, Octet16 irk, Address identity_address, in SendKeys() argument
466 SendL2capPacket(i, IdentityInformationBuilder::Create(irk)); in SendKeys()
Dfacade.cc287 crypto_toolbox::Octet16 irk = {}; in SetLeInitiatorAddressPolicy() local
291 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetLeInitiatorAddressPolicy()
298 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in SetLeInitiatorAddressPolicy()
Dpairing_handler_le.h254 … std::array<uint8_t, 8> rand, Octet16 irk, Address identity_address, AddrType identity_addres_type,
/system/bt/stack/include/
Dbtm_ble_api_types.h530 Octet16 irk; member
574 Octet16 irk; member
/system/bt/btif/src/
Dbtif_dm.cc138 Octet16 irk; member
1690 ble_local_key_cb.id_keys.irk = p_data->ble_id_keys.irk; in btif_dm_upstreams_evt()
1693 btif_storage_add_ble_local_key(ble_local_key_cb.id_keys.irk, in btif_dm_upstreams_evt()
2726 &ble_local_key_cb.id_keys.irk) == in btif_dm_load_ble_local_keys()
2745 p_id_keys->irk = ble_local_key_cb.id_keys.irk; in btif_dm_get_ble_local_keys()
/system/bt/bta/include/
Dbta_api.h269 Octet16 irk; member
/system/bt/stack/smp/
Dsmp_utils.cc601 const Octet16& irk = BTM_GetDeviceIDRoot(); in smp_build_identity_info_cmd() local
604 ARRAY_TO_STREAM(p, irk.data(), OCTET16_LEN); in smp_build_identity_info_cmd()
Dsmp_act.cc1040 pid_key.pid_key.irk = p_cb->tk; in smp_proc_id_addr()