Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/stack/btm/
Dbtm_ble_addr.cc44 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()
Dbtm_ble_privacy.cc523 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()
Dbtm_ble_adv_filter.cc656 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/
Dle_l2cap_coc_test.py54 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/
Dle_advanced_scanning_test.py58 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/
Doob_pairing_sl4a_test.py119 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/
Dgatt_connect_with_irk_test.py89 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/
DScanFilter.java101 @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/
Dle_scanner.py93 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/
Dle_scanning.py54 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/
Doob_pairing_test.py54 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()
Dirk_rotation_test.py87 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/
DScanFilterQueueTest.java45 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/
Dgatt_ble_scanner_shim.cc47 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/
Dle_address_manager_test.cc220 …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()
Daddress_with_type.h54 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()
Dacl_manager.cc188 …auto irk = GetDependency<storage::StorageModule>()->GetAdapterConfig().GetLeIdentityResolvingKey(); in SetPrivacyPolicyForInitiatorAddress() local
189 if (irk.has_value()) { in SetPrivacyPolicyForInitiatorAddress()
190 rotation_irk = irk->bytes; in SetPrivacyPolicyForInitiatorAddress()
Dle_scanning_callback.h105 std::array<uint8_t, 16> irk; variable
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DScanFilterQueue.java54 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/
Dle_initiator_address_facade.cc63 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/
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.cc359 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/
Dbtm_ble_api_types.h548 Octet16 irk; member
593 Octet16 irk; member
/packages/modules/Bluetooth/system/include/hardware/
Dbt_common_types.h107 std::array<uint8_t, 16> irk; // 128 bit/16 octet IRK member
/packages/modules/Bluetooth/system/btif/src/
Dbtif_dm.cc181 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()

12