/system/bt/gd/security/pairing/ |
D | classic_pairing_handler_unittest.cc | 231 hci::KeyType key_type) { in ReceiveLinkKeyNotification() argument 232 …_->IncomingEvent(hci::LinkKeyNotificationBuilder::Create(device.GetAddress(), link_key, key_type)); in ReceiveLinkKeyNotification() 318 hci::KeyType key_type = hci::KeyType::DEBUG_COMBINATION; in TEST_F() local 319 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 321 ASSERT_EQ(key_type, security_record_->GetKeyType()); in TEST_F() 356 hci::KeyType key_type = hci::KeyType::DEBUG_COMBINATION; in TEST_F() local 357 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() 359 ASSERT_EQ(key_type, security_record_->GetKeyType()); in TEST_F() 394 hci::KeyType key_type = hci::KeyType::DEBUG_COMBINATION; in TEST_F() local 395 ReceiveLinkKeyNotification(device_, link_key, key_type); in TEST_F() [all …]
|
/system/bt/stack/btm/ |
D | btm_ble.cc | 117 tBTM_LE_KEY_TYPE key_type) { in BTM_SecAddBleKey() argument 119 return bluetooth::shim::BTM_SecAddBleKey(bd_addr, p_le_key, key_type); in BTM_SecAddBleKey() 126 (key_type != BTM_LE_KEY_PENC && key_type != BTM_LE_KEY_PID && in BTM_SecAddBleKey() 127 key_type != BTM_LE_KEY_PCSRK && key_type != BTM_LE_KEY_LENC && in BTM_SecAddBleKey() 128 key_type != BTM_LE_KEY_LCSRK && key_type != BTM_LE_KEY_LID)) { in BTM_SecAddBleKey() 131 << ", Type: " << key_type; in BTM_SecAddBleKey() 135 VLOG(1) << __func__ << " BDA: " << bd_addr << ", Type: " << key_type; in BTM_SecAddBleKey() 137 btm_sec_save_le_key(bd_addr, key_type, p_le_key, false); in BTM_SecAddBleKey() 139 if (key_type == BTM_LE_KEY_PID || key_type == BTM_LE_KEY_LID) { in BTM_SecAddBleKey() 158 void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key) { in BTM_BleLoadLocalKeys() argument [all …]
|
D | btm_dev.cc | 65 uint8_t key_type, uint8_t pin_length) { in BTM_SecAddDevice() argument 66 BTM_TRACE_API("%s: link key type:%x", __func__, key_type); in BTM_SecAddDevice() 107 p_dev_rec->link_key_type = key_type; in BTM_SecAddDevice() 110 if (pin_length >= 16 || key_type == BTM_LKEY_TYPE_AUTH_COMB || in BTM_SecAddDevice() 111 key_type == BTM_LKEY_TYPE_AUTH_COMB_P_256) { in BTM_SecAddDevice()
|
D | btm_dev.h | 44 uint8_t key_type, uint8_t pin_length);
|
D | security_device_record.h | 114 tBTM_LE_KEY_TYPE key_type; /* bit mask of valid key types in record */ member 225 LinkKey* p_link_key, uint8_t key_type, 237 uint8_t key_type);
|
/system/bt/btif/include/ |
D | btif_storage.h | 155 LinkKey link_key, uint8_t key_type, 282 uint8_t key_type, 285 uint8_t key_type, 290 uint8_t key_type); 294 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type,
|
/system/security/keystore2/src/ |
D | raw_device.rs | 104 key_type: KeyType, in create_and_store_key() 124 key_type, in create_and_store_key() 149 key_type: KeyType, in lookup_from_desc() 151 db.load_key_entry(&key_desc, key_type, KeyEntryLoadBits::KM, AID_KEYSTORE, |_, _| Ok(())) in lookup_from_desc() 174 key_type: KeyType, in lookup_or_generate_key() 186 let lookup = Self::not_found_is_none(Self::lookup_from_desc(db, key_desc, key_type)) in lookup_or_generate_key() 231 self.create_and_store_key(db, &key_desc, key_type, |km_dev| { in lookup_or_generate_key() 235 Self::lookup_from_desc(db, key_desc, key_type) in lookup_or_generate_key()
|
/system/bt/test/mock/ |
D | mock_btif_storage.cc | 63 uint8_t key_type, in btif_storage_add_ble_bonding_key() argument 69 uint8_t key_type) { in btif_storage_add_ble_local_key() argument 74 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument 98 uint8_t key_type, in btif_storage_get_ble_bonding_key() argument 104 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type, in btif_storage_get_ble_local_key() argument
|
D | mock_bta_dm_api.cc | 62 tBTM_LE_KEY_TYPE key_type) { in BTA_DmAddBleKey() argument 66 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument
|
D | mock_stack_btm_ble.cc | 147 void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key) { in BTM_BleLoadLocalKeys() argument 197 tBTM_LE_KEY_TYPE key_type) { in BTM_SecAddBleKey() argument 245 void btm_sec_save_le_key(const RawAddress& bd_addr, tBTM_LE_KEY_TYPE key_type, in btm_sec_save_le_key() argument
|
D | mock_stack_btm_dev.cc | 50 uint8_t key_type, uint8_t pin_length) { in BTM_SecAddDevice() argument
|
/system/core/mini_keyctl/ |
D | mini_keyctl_utils.cpp | 66 std::string key_type = tokens[7]; in GetKeyringId() local 71 if (key_type != "keyring" || key_desc_prefix != key_desc_pattern) { in GetKeyringId()
|
/system/keymaster/android_keymaster/ |
D | operation.cpp | 64 KeyType key_type = registry_key(); in is_public_key_operation() local 66 if (!is_public_key_algorithm(key_type.algorithm)) return false; in is_public_key_operation() 68 switch (key_type.purpose) { in is_public_key_operation()
|
/system/update_engine/payload_consumer/ |
D | payload_verifier.cc | 154 int key_type = EVP_PKEY_id(public_key.get()); in VerifyRawSignature() local 155 if (key_type == EVP_PKEY_RSA) { in VerifyRawSignature() 175 } else if (key_type == EVP_PKEY_EC) { in VerifyRawSignature() 187 LOG(ERROR) << "Unsupported key type " << key_type; in VerifyRawSignature()
|
/system/bt/bta/dm/ |
D | bta_dm_api.cc | 236 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument 243 msg->key_type = key_type; in BTA_DmAddDevice() 408 tBTM_LE_KEY_TYPE key_type) { in BTA_DmAddBleKey() argument 410 FROM_HERE, base::Bind(bta_dm_add_blekey, bd_addr, *p_le_key, key_type)); in BTA_DmAddBleKey()
|
/system/bt/gd/security/record/ |
D | security_record.h | 51 void SetLinkKey(std::array<uint8_t, 16> link_key, hci::KeyType key_type) { in SetLinkKey() argument 53 key_type_ = key_type; in SetLinkKey()
|
/system/update_engine/common/ |
D | prefs.cc | 250 using key_type = decltype(values_)::key_type; in GetSubKeys() typedef 251 auto lower_comp = [](const value_type& pr, const key_type& ns) { in GetSubKeys() 254 auto upper_comp = [](const key_type& ns, const value_type& pr) { in GetSubKeys()
|
/system/bt/btif/src/ |
D | btif_storage.cc | 486 static void btif_read_le_key(const uint8_t key_type, const size_t key_len, in btif_read_le_key() argument 496 if (btif_storage_get_ble_bonding_key(bd_addr, key_type, (uint8_t*)&key, in btif_read_le_key() 504 BTIF_TRACE_DEBUG("%s() Adding key type %d for %s", __func__, key_type, in btif_read_le_key() 506 BTA_DmAddBleKey(bd_addr, &key, key_type); in btif_read_le_key() 807 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument 810 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type); in btif_storage_add_bonded_device() 1051 uint8_t key_type, in btif_storage_add_ble_bonding_key() argument 1054 switch (key_type) { in btif_storage_add_ble_bonding_key() 1093 uint8_t key_type, in btif_storage_get_ble_bonding_key() argument 1097 switch (key_type) { in btif_storage_get_ble_bonding_key() [all …]
|
/system/bt/stack/include/ |
D | security_client_callbacks.h | 50 const LinkKey& key, uint8_t key_type);
|
D | sec_hci_link_interface.h | 42 const Octet16& link_key, uint8_t key_type);
|
D | btm_client_interface.h | 120 LinkKey* link_key, uint8_t key_type, 135 tBTM_LE_KEY_TYPE key_type); 168 void (*BTM_BleLoadLocalKeys)(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key);
|
D | btm_ble_api.h | 76 tBTM_LE_KEY_TYPE key_type); 336 extern void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key);
|
/system/bt/bta/include/ |
D | bta_api.h | 285 tBTM_LE_KEY_TYPE key_type; member 295 uint8_t key_type; /* The type of Link Key */ member 835 const LinkKey& link_key, uint8_t key_type, 1024 tBTM_LE_KEY_TYPE key_type);
|
/system/bt/stack/smp/ |
D | smp_act.cc | 66 static void smp_update_key_mask(tSMP_CB* p_cb, uint8_t key_type, bool recv) { in smp_update_key_mask() argument 72 ((key_type == SMP_SEC_KEY_TYPE_ENC) || in smp_update_key_mask() 73 (key_type == SMP_SEC_KEY_TYPE_LK))) { in smp_update_key_mask() 76 p_cb->local_i_key &= ~key_type; in smp_update_key_mask() 77 p_cb->local_r_key &= ~key_type; in smp_update_key_mask() 80 p_cb->local_i_key &= ~key_type; in smp_update_key_mask() 82 p_cb->local_r_key &= ~key_type; in smp_update_key_mask() 85 p_cb->local_r_key &= ~key_type; in smp_update_key_mask() 87 p_cb->local_i_key &= ~key_type; in smp_update_key_mask() 1121 uint8_t key_type = p_data->key.key_type; in smp_proc_sl_key() local [all …]
|
/system/bt/stack/gatt/ |
D | gatt_auth.cc | 276 uint8_t key_type; in gatt_determine_sec_act() local 317 btm_ble_get_enc_key_type(p_tcb->peer_bda, &key_type); in gatt_determine_sec_act() 319 if ((key_type & BTM_LE_KEY_LCSRK) && in gatt_determine_sec_act()
|