/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_addr.cc | 44 static RawAddress generate_rpa_from_irk_and_rand(const Octet16& irk, in generate_rpa_from_irk_and_rand() argument 55 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand() 78 const Octet16& irk = BTM_GetDeviceIDRoot(); in btm_gen_resolvable_private_addr() local 79 cb.Run(generate_rpa_from_irk_and_rand(irk, random)); in btm_gen_resolvable_private_addr() 118 static bool rpa_matches_irk(const RawAddress& rpa, const Octet16& irk) { in rpa_matches_irk() argument 126 Octet16 x = crypto_toolbox::aes_128(irk, &rand[0], 3); in rpa_matches_irk() 151 if (rpa_matches_irk(rpa, p_dev_rec->ble.keys.irk)) { in btm_ble_addr_resolvable() 171 if (rpa_matches_irk(*random_bda, p_dev_rec->ble.keys.irk)) { in btm_ble_match_random_bda()
|
D | btm_ble_privacy.cc | 523 ARRAY_TO_STREAM(p, p_dev_rec->ble.keys.irk, OCTET16_LEN); in btm_ble_ble_unsupported_resolving_list_load_dev() 539 static Octet16 get_local_irk() { return btm_cb.devcb.id_keys.irk; } in get_local_irk() 564 const Octet16& peer_irk = dev_rec.ble.keys.irk; in btm_ble_resolving_list_load_dev()
|
D | btm_ble_adv_filter.cc | 656 if (!is_empty_128bit(cmd.irk)) { in BTM_LE_PF_set() 690 pid_keys.irk = cmd.irk; in BTM_LE_PF_set()
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/l2cap/ |
D | le_l2cap_coc_test.py | 54 irk = irk_fields[2] 55 logging.debug("Found cert IRK: %s" % irk) 58 return address, irk 75 cert_public_address, irk = self.__get_cert_public_address_and_irk_from_bt_config() 87 cert_public_address, irk = self.__get_cert_public_address_and_irk_from_bt_config() 89 … self.dut_scanner_.scan_for_address_with_irk(cert_public_address, ble_address_types["public"], irk) 146 cert_config_addr, irk = self.__get_cert_public_address_and_irk_from_bt_config()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/ |
D | le_advanced_scanning_test.py | 58 def _set_cert_privacy_policy_with_random_address_but_advertise_resolvable(self, irk): argument 64 rotation_irk=irk) 69 def __advertise_rpa_random_policy(self, legacy_pdus, irk): argument 72 ADDRESS = self._set_cert_privacy_policy_with_random_address_but_advertise_resolvable(irk) 100 def _advertise_rpa_random_legacy_pdu(self, irk): argument 101 return self.__advertise_rpa_random_policy(True, irk) 103 def _advertise_rpa_random_extended_pdu(self, irk): argument 104 return self.__advertise_rpa_random_policy(False, irk) 116 def _set_cert_privacy_policy_with_public_address_but_advertise_resolvable(self, irk): argument 122 rotation_irk=irk) [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/security/ |
D | oob_pairing_sl4a_test.py | 119 def _set_cert_privacy_policy_with_random_address_but_advertise_resolvable(self, irk): argument 126 rotation_irk=irk) 131 def __advertise_rpa_random_policy(self, legacy_pdus, irk): argument 134 ADDRESS = self._set_cert_privacy_policy_with_random_address_but_advertise_resolvable(irk) 162 def _advertise_rpa_random_legacy_pdu(self, irk): argument 163 return self.__advertise_rpa_random_policy(True, irk) 165 def _advertise_rpa_random_extended_pdu(self, irk): argument 166 return self.__advertise_rpa_random_policy(False, irk)
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/ |
D | gatt_connect_with_irk_test.py | 89 irk = irk_fields[2] 90 logging.debug("Found cert IRK: %s" % irk) 93 return address, irk 110 cert_public_address, irk = self._get_cert_public_address_and_irk_from_bt_config() 115 … addr_type, irk)) 122 …dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(cert_public_address, int(addr_type), irk)
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanFilter.java | 101 @AddressType int addressType, @Nullable byte[] irk, int advertisingDataType, in ScanFilter() argument 116 mIrk = irk; in ScanFilter() 286 final byte[] irk = new byte[16]; 287 in.readByteArray(irk); 288 builder.setDeviceAddress(address, addressType, irk); 763 @NonNull byte[] irk) { in setDeviceAddress() argument 764 requireNonNull(irk); in setDeviceAddress() 765 if (irk.length != LEN_IRK_OCTETS) { in setDeviceAddress() 768 return setDeviceAddressInternal(deviceAddress, addressType, irk); in setDeviceAddress() 793 @Nullable byte[] irk) { in setDeviceAddressInternal() argument [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/ |
D | le_scanner.py | 93 def scan_for_address_with_irk(self, address, addr_type, irk): argument 98 …o("Start scanning for identity address {} or type {} using irk {}".format(address, addr_type, irk)) 105 self.device.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(address, addr_type, irk) 115 def scan_for_address_with_irk_pending_intent(self, address, addr_type, irk): argument 120 …o("Start scanning for identity address {} or type {} using irk {}".format(address, addr_type, irk)) 129 self.device.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(address, addr_type, irk)
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/scanning/ |
D | le_scanning.py | 54 irk = irk_fields[2] 55 logging.debug("Found cert IRK: %s" % irk) 58 return address, irk 70 cert_public_address, irk = self.__get_cert_public_address_and_irk_from_bt_config()
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/security/ |
D | oob_pairing_test.py | 54 irk = irk_fields[2] 55 logging.debug("Found cert IRK: %s" % irk) 58 return address, irk 70 cert_public_address, irk = self.__get_cert_public_address_and_irk_from_bt_config()
|
D | irk_rotation_test.py | 87 irk = irk_fields[2] 88 logging.debug("Found cert IRK: %s" % irk) 91 return address, irk 124 cert_public_address, irk = self.__get_cert_public_address_and_irk_from_bt_config()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueueTest.java | 45 byte[] irk = new byte[]{0x02}; in scanFilterQueueParams() 46 queue.addDeviceAddress(address, type, irk); in scanFilterQueueParams() 89 assertThat(entry.irk).isEqualTo(irk); in scanFilterQueueParams()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/ |
D | gatt_ble_scanner_shim.cc | 47 std::array<uint8_t, 16> irk; in ConvertApcfFromRust() local 51 std::copy(command.irk.begin(), command.irk.end(), std::begin(irk)); in ConvertApcfFromRust() 65 .irk = irk, in ConvertApcfFromRust()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | le_address_manager_test.cc | 220 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local 227 irk, in TEST_F() 243 Octet16 irk = {}; in TEST_F() local 250 irk, in TEST_F() 268 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in TEST_F() local 275 irk, in TEST_F() 306 …Octet16 irk = {0xec, 0x02, 0x34, 0xa3, 0x57, 0xc8, 0xad, 0x05, 0x34, 0x10, 0x10, 0xa6, 0x0a, 0x39,… in SetUp() local 313 irk, in SetUp()
|
D | address_with_type.h | 54 bool IsRpaThatMatchesIrk(const crypto_toolbox::Octet16& irk) const { in IsRpaThatMatchesIrk() argument 63 crypto_toolbox::Octet16 computed_hash = crypto_toolbox::aes_128(irk, &prand[0], 3); in IsRpaThatMatchesIrk()
|
D | acl_manager.cc | 188 …auto irk = GetDependency<storage::StorageModule>()->GetAdapterConfig().GetLeIdentityResolvingKey(); in SetPrivacyPolicyForInitiatorAddress() local 189 if (irk.has_value()) { in SetPrivacyPolicyForInitiatorAddress() 190 rotation_irk = irk->bytes; in SetPrivacyPolicyForInitiatorAddress()
|
D | le_scanning_callback.h | 105 std::array<uint8_t, 16> irk; variable
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 54 public byte[] irk; field in ScanFilterQueue.Entry 67 void addDeviceAddress(String address, byte type, byte[] irk) { in addDeviceAddress() argument 72 entry.irk = irk; in addDeviceAddress()
|
/packages/modules/Bluetooth/system/gd/hci/facade/ |
D | le_initiator_address_facade.cc | 63 crypto_toolbox::Octet16 irk = {}; in SetPrivacyPolicyForInitiatorAddress() local 67 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetPrivacyPolicyForInitiatorAddress() 69 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in SetPrivacyPolicyForInitiatorAddress()
|
/packages/modules/Bluetooth/system/gd/security/ |
D | pairing_handler_le.cc | 387 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()
|
D | facade.cc | 359 crypto_toolbox::Octet16 irk = {}; in SetLeInitiatorAddressPolicy() local 363 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetLeInitiatorAddressPolicy() 370 address_policy, address_with_type, irk, minimum_rotation_time, maximum_rotation_time); in SetLeInitiatorAddressPolicy()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | btm_ble_api_types.h | 548 Octet16 irk; member 593 Octet16 irk; member
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bt_common_types.h | 107 std::array<uint8_t, 16> irk; // 128 bit/16 octet IRK member
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_dm.cc | 181 Octet16 irk; member 2016 ble_local_key_cb.id_keys.irk = p_data->ble_id_keys.irk; in btif_dm_upstreams_evt() 2019 btif_storage_add_ble_local_key(ble_local_key_cb.id_keys.irk, in btif_dm_upstreams_evt() 3150 &ble_local_key_cb.id_keys.irk) == in btif_dm_load_ble_local_keys() 3172 p_id_keys->irk = ble_local_key_cb.id_keys.irk; in btif_dm_get_ble_local_keys()
|