Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 25 of 55) sorted by relevance

123

/system/bt/gd/security/pairing/
Dclassic_pairing_handler_unittest.cc231 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/
Dbtm_ble.cc117 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 …]
Dbtm_dev.cc65 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()
Dbtm_dev.h44 uint8_t key_type, uint8_t pin_length);
Dsecurity_device_record.h114 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/
Dbtif_storage.h155 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/
Draw_device.rs104 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/
Dmock_btif_storage.cc63 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
Dmock_bta_dm_api.cc62 tBTM_LE_KEY_TYPE key_type) { in BTA_DmAddBleKey() argument
66 const LinkKey& link_key, uint8_t key_type, in BTA_DmAddDevice() argument
Dmock_stack_btm_ble.cc147 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
Dmock_stack_btm_dev.cc50 uint8_t key_type, uint8_t pin_length) { in BTM_SecAddDevice() argument
/system/core/mini_keyctl/
Dmini_keyctl_utils.cpp66 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/
Doperation.cpp64 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/
Dpayload_verifier.cc154 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/
Dbta_dm_api.cc236 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/
Dsecurity_record.h51 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/
Dprefs.cc250 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/
Dbtif_storage.cc486 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/
Dsecurity_client_callbacks.h50 const LinkKey& key, uint8_t key_type);
Dsec_hci_link_interface.h42 const Octet16& link_key, uint8_t key_type);
Dbtm_client_interface.h120 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);
Dbtm_ble_api.h76 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/
Dbta_api.h285 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/
Dsmp_act.cc66 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/
Dgatt_auth.cc276 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()

123