Home
last modified time | relevance | path

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

/system/bt/stack/btm/
Dbtm_ble_addr.cc40 RawAddress generate_rpa_from_irk_and_rand(const Octet16& irk, in generate_rpa_from_irk_and_rand() argument
51 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand()
90 const Octet16& irk = BTM_GetDeviceIDRoot(); in btm_gen_resolvable_private_addr() local
91 cb.Run(generate_rpa_from_irk_and_rand(irk, random)); in btm_gen_resolvable_private_addr()
130 static bool rpa_matches_irk(const RawAddress& rpa, const Octet16& irk) { in rpa_matches_irk() argument
138 Octet16 x = crypto_toolbox::aes_128(irk, &rand[0], 3); in rpa_matches_irk()
163 if (rpa_matches_irk(rpa, p_dev_rec->ble.keys.irk)) { in btm_ble_addr_resolvable()
187 if (rpa_matches_irk(*random_bda, p_dev_rec->ble.keys.irk)) { in btm_ble_match_random_bda()
Dbtm_ble_privacy.cc725 const Octet16& peer_irk = p_dev_rec->ble.keys.irk; in btm_ble_resolving_list_load_dev()
726 const Octet16& local_irk = btm_cb.devcb.id_keys.irk; in btm_ble_resolving_list_load_dev()
751 ARRAY_TO_STREAM(p, p_dev_rec->ble.keys.irk, OCTET16_LEN); in btm_ble_resolving_list_load_dev()
Dbtm_ble.cc221 return btm_cb.devcb.id_keys.irk; in BTM_GetDeviceIDRoot()
1307 p_rec->ble.keys.irk = p_keys->pid_key.irk; in btm_sec_save_le_key()
2183 btm_cb.devcb.id_keys.irk = in btm_ble_reset_id_impl()
Dbtm_int_types.h396 Octet16 irk; /* peer diverified identity root */ member
/system/bt/gd/security/record/
Dsecurity_record_database.h57 if (record->irk.has_value() && address.IsRpaThatMatchesIrk(record->irk.value())) return it; in Find()
Dsecurity_record.h134 std::optional<crypto_toolbox::Octet16> irk; variable
/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()
70 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in SetPrivacyPolicyForInitiatorAddress()
/system/bt/gd/hci/
Dle_address_manager_test.cc203 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local
210 irk, in TEST_F()
225 Octet16 irk = {}; in TEST_F() local
232 irk, in TEST_F()
249 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local
256 irk, in TEST_F()
285 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in SetUp() local
292 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_test.cc325 crypto_toolbox::Octet16 irk = {}; in SetUp() local
331 irk, in SetUp()
1223 crypto_toolbox::Octet16 irk = {}; in SetUp() local
1229 irk, in SetUp()
/system/bt/gd/security/
Dpairing_handler_le.cc348 std::optional<Octet16> irk; in ReceiveKeys() local
380 irk = std::get<IdentityInformationView>(packet).GetIdentityResolvingKey(); in ReceiveKeys()
411 .irk = irk, in ReceiveKeys()
416 std::array<uint8_t, 8> rand, Octet16 irk, Address identity_address, in SendKeys() argument
427 SendL2capPacket(i, IdentityInformationBuilder::Create(irk)); in SendKeys()
Dinitial_informations.h46 std::optional<crypto_toolbox::Octet16> irk; member
Dfacade.cc188 crypto_toolbox::Octet16 irk = {}; in SetLeInitiatorAddressPolicy() local
192 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetLeInitiatorAddressPolicy()
199 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in SetLeInitiatorAddressPolicy()
Dpairing_handler_le.h223 … std::array<uint8_t, 8> rand, Octet16 irk, Address identity_address, AddrType identity_addres_type,
/system/bt/btif/src/
Dbtif_dm.cc137 Octet16 irk; member
1894 ble_local_key_cb.id_keys.irk = p_data->ble_id_keys.irk; in btif_dm_upstreams_evt()
1897 btif_storage_add_ble_local_key(ble_local_key_cb.id_keys.irk, in btif_dm_upstreams_evt()
3026 &ble_local_key_cb.id_keys.irk) == in btif_dm_load_ble_local_keys()
3045 p_id_keys->irk = ble_local_key_cb.id_keys.irk; in btif_dm_get_ble_local_keys()
/system/bt/stack/include/
Dbtm_api_types.h1386 Octet16 irk; member
1429 Octet16 irk; member
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc78 crypto_toolbox::Octet16 irk = { in Init() local
85 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in Init()
/system/bt/stack/smp/
Dsmp_utils.cc589 const Octet16& irk = BTM_GetDeviceIDRoot(); in smp_build_identity_info_cmd() local
592 ARRAY_TO_STREAM(p, irk.data(), OCTET16_LEN); in smp_build_identity_info_cmd()
Dsmp_act.cc1018 pid_key.pid_key.irk = p_cb->tk; in smp_proc_id_addr()
/system/bt/bta/include/
Dbta_api.h480 Octet16 irk; member