Home
last modified time | relevance | path

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

12

/system/bt/btif/include/
Dbtif_storage.h154 LinkKey link_key, uint8_t key_type,
256 uint8_t key_type,
259 uint8_t key_type,
264 uint8_t key_type);
268 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type,
/system/bt/stack/btm/
Dbtm_ble.cc132 tBTM_LE_KEY_TYPE key_type) { in BTM_SecAddBleKey() argument
137 (key_type != BTM_LE_KEY_PENC && key_type != BTM_LE_KEY_PID && in BTM_SecAddBleKey()
138 key_type != BTM_LE_KEY_PCSRK && key_type != BTM_LE_KEY_LENC && in BTM_SecAddBleKey()
139 key_type != BTM_LE_KEY_LCSRK && key_type != BTM_LE_KEY_LID)) { in BTM_SecAddBleKey()
142 << ", Type: " << key_type; in BTM_SecAddBleKey()
146 VLOG(1) << __func__ << " BDA: " << bd_addr << ", Type: " << key_type; in BTM_SecAddBleKey()
148 btm_sec_save_le_key(bd_addr, key_type, p_le_key, false); in BTM_SecAddBleKey()
151 if (key_type == BTM_LE_KEY_PID || key_type == BTM_LE_KEY_LID) in BTM_SecAddBleKey()
172 void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key) { in BTM_BleLoadLocalKeys() argument
176 switch (key_type) { in BTM_BleLoadLocalKeys()
[all …]
Dbtm_dev.cc64 uint8_t key_type, tBTM_IO_CAP io_cap, in BTM_SecAddDevice() argument
66 BTM_TRACE_API("%s: link key type:%x", __func__, key_type); in BTM_SecAddDevice()
127 p_dev_rec->link_key_type = key_type; in BTM_SecAddDevice()
130 if (pin_length >= 16 || key_type == BTM_LKEY_TYPE_AUTH_COMB || in BTM_SecAddDevice()
131 key_type == BTM_LKEY_TYPE_AUTH_COMB_P_256) { in BTM_SecAddDevice()
140 if (key_type < BTM_MAX_PRE_SM4_LKEY_TYPE) in BTM_SecAddDevice()
Dbtm_ble_addr.cc203 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) { in btm_ble_addr_resolvable()
227 !(p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) in btm_ble_match_random_bda()
Dbtm_ble_int.h110 tBTM_LE_KEY_TYPE key_type,
Dbtm_ble_privacy.cc697 if ((p_dev_rec->ble.key_type & (BTM_LE_KEY_PID | BTM_LE_KEY_LID)) == 0) { in btm_ble_resolving_list_load_dev()
702 } else if ((p_dev_rec->ble.key_type & BTM_LE_KEY_PID) == 0) { in btm_ble_resolving_list_load_dev()
Dbtm_sec.cc3998 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_encrypt_change()
4596 const Octet16& link_key, uint8_t key_type) { in btm_sec_link_key_notification() argument
4601 VLOG(2) << __func__ << " BDA: " << p_bda << ", TYPE: " << +key_type; in btm_sec_link_key_notification()
4603 if ((key_type >= BTM_LTK_DERIVED_LKEY_OFFSET + BTM_LKEY_TYPE_COMBINATION) && in btm_sec_link_key_notification()
4604 (key_type <= in btm_sec_link_key_notification()
4607 key_type -= BTM_LTK_DERIVED_LKEY_OFFSET; in btm_sec_link_key_notification()
4612 if (key_type != BTM_LKEY_TYPE_CHANGED_COMB) in btm_sec_link_key_notification()
4613 p_dev_rec->link_key_type = key_type; in btm_sec_link_key_notification()
4665 VLOG(2) << __func__ << " Delayed BDA: " << p_bda << " Type:" << +key_type; in btm_sec_link_key_notification()
5861 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_clear_ble_keys()
[all …]
Dbtm_int.h254 uint8_t key_type);
/system/keymaster/android_keymaster/
Doperation.cpp68 KeyType key_type = registry_key(); in is_public_key_operation() local
70 if (!is_public_key_algorithm(key_type.algorithm)) in is_public_key_operation()
73 switch (key_type.purpose) { in is_public_key_operation()
/system/bt/btif/src/
Dbtif_storage.cc498 static void btif_read_le_key(const uint8_t key_type, const size_t key_len, in btif_read_le_key() argument
508 if (btif_storage_get_ble_bonding_key(&bd_addr, key_type, (uint8_t*)&key, in btif_read_le_key()
516 BTIF_TRACE_DEBUG("%s() Adding key type %d for %s", __func__, key_type, in btif_read_le_key()
518 BTA_DmAddBleKey(bd_addr, &key, key_type); in btif_read_le_key()
820 LinkKey link_key, uint8_t key_type, in btif_storage_add_bonded_device() argument
823 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type); in btif_storage_add_bonded_device()
1058 uint8_t key_type, in btif_storage_add_ble_bonding_key() argument
1061 switch (key_type) { in btif_storage_add_ble_bonding_key()
1100 uint8_t key_type, in btif_storage_get_ble_bonding_key() argument
1104 switch (key_type) { in btif_storage_get_ble_bonding_key()
[all …]
Dbtif_dm.cc1052 if ((p_auth_cmpl->key_type < HCI_LKEY_TYPE_DEBUG_COMB) || in btif_dm_auth_cmpl_evt()
1053 (p_auth_cmpl->key_type == HCI_LKEY_TYPE_AUTH_COMB) || in btif_dm_auth_cmpl_evt()
1054 (p_auth_cmpl->key_type == HCI_LKEY_TYPE_CHANGED_COMB) || in btif_dm_auth_cmpl_evt()
1055 (p_auth_cmpl->key_type == HCI_LKEY_TYPE_AUTH_COMB_P_256) || in btif_dm_auth_cmpl_evt()
1059 __func__, p_auth_cmpl->key_type, pairing_cb.bond_type); in btif_dm_auth_cmpl_evt()
1061 p_auth_cmpl->key_type, in btif_dm_auth_cmpl_evt()
1067 __func__, p_auth_cmpl->key_type, pairing_cb.bond_type); in btif_dm_auth_cmpl_evt()
1739 p_data->ble_key.key_type); in btif_dm_upstreams_evt()
1754 p_data->ble_key.key_type); in btif_dm_upstreams_evt()
1758 switch (p_data->ble_key.key_type) { in btif_dm_upstreams_evt()
[all …]
/system/core/libkeyutils/
Dmini_keyctl_utils.cpp75 std::string key_type = tokens[7]; in GetKeyringId() local
80 if (key_type != "keyring" || key_desc_prefix != key_desc_pattern) { in GetKeyringId()
/system/bt/bta/dm/
Dbta_dm_api.cc301 bool is_trusted, uint8_t key_type, tBTA_IO_CAP io_cap, in BTA_DmAddDevice() argument
311 msg->key_type = key_type; in BTA_DmAddDevice()
443 tBTA_LE_KEY_TYPE key_type) { in BTA_DmAddBleKey() argument
445 FROM_HERE, base::Bind(bta_dm_add_blekey, bd_addr, *p_le_key, key_type)); in BTA_DmAddBleKey()
Dbta_dm_int.h156 uint8_t key_type; member
497 tBTA_LE_KEY_TYPE key_type);
Dbta_dm_act.cc77 const LinkKey& key, uint8_t key_type);
115 static void bta_dm_ble_id_key_cback(uint8_t key_type,
748 trusted_services_mask, p_lc, msg->key_type, msg->io_cap, in bta_dm_add_device()
2381 uint8_t key_type) { in bta_dm_new_link_key_cback() argument
2389 if (key_type != HCI_LKEY_TYPE_AMP_WIFI && key_type != HCI_LKEY_TYPE_AMP_UWB) { in bta_dm_new_link_key_cback()
2398 p_auth_cmpl->key_type = key_type; in bta_dm_new_link_key_cback()
3846 sec_event.ble_key.key_type = p_data->key.key_type; in bta_dm_ble_smp_cback()
3907 static void bta_dm_ble_id_key_cback(uint8_t key_type, in bta_dm_ble_id_key_cback() argument
3912 switch (key_type) { in bta_dm_ble_id_key_cback()
3918 evt = (key_type == BTM_BLE_KEY_TYPE_ID) ? BTA_DM_BLE_LOCAL_IR_EVT in bta_dm_ble_id_key_cback()
[all …]
/system/bt/stack/smp/
Dsmp_act.cc69 static void smp_update_key_mask(tSMP_CB* p_cb, uint8_t key_type, bool recv) { in smp_update_key_mask() argument
75 ((key_type == SMP_SEC_KEY_TYPE_ENC) || in smp_update_key_mask()
76 (key_type == SMP_SEC_KEY_TYPE_LK))) { in smp_update_key_mask()
79 p_cb->local_i_key &= ~key_type; in smp_update_key_mask()
80 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
83 p_cb->local_i_key &= ~key_type; in smp_update_key_mask()
85 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
88 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
90 p_cb->local_i_key &= ~key_type; in smp_update_key_mask()
1099 uint8_t key_type = p_data->key.key_type; in smp_proc_sl_key() local
[all …]
Dsmp_keys.cc140 key.key_type = SMP_KEY_TYPE_TK; in smp_proc_passkey()
398 key.key_type = SMP_KEY_TYPE_CFM; in smp_generate_confirm()
461 key.key_type = SMP_KEY_TYPE_CMP; in smp_generate_compare()
479 key.key_type = SMP_KEY_TYPE_STK; in smp_process_stk()
500 key.key_type = SMP_KEY_TYPE_LTK; in smp_process_ediv()
921 key.key_type = SMP_KEY_TYPE_PEER_DHK_CHCK; in smp_calculate_peer_dhkey_check()
Dsmp_api.cc413 key.key_type = SMP_KEY_TYPE_TK; in SMP_OobDataReply()
/system/bt/stack/include/
Dbtm_ble_api.h76 tBTM_LE_KEY_TYPE key_type);
361 extern void BTM_BleLoadLocalKeys(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key);
Dbtm_api_types.h1336 const LinkKey& key, uint8_t key_type);
1680 tBTM_LE_KEY_TYPE key_type; member
1720 typedef void(tBTM_LE_KEY_CALLBACK)(uint8_t key_type,
/system/bt/stack/gatt/
Dgatt_auth.cc279 uint8_t key_type; in gatt_determine_sec_act() local
325 btm_ble_get_enc_key_type(p_tcb->peer_bda, &key_type); in gatt_determine_sec_act()
327 if ((key_type & BTM_LE_KEY_LCSRK) && in gatt_determine_sec_act()
/system/bt/bta/include/
Dbta_api.h504 tBTM_LE_KEY_TYPE key_type; member
514 uint8_t key_type; /* The type of Link Key */ member
1292 uint8_t key_type, tBTA_IO_CAP io_cap,
1453 tBTA_LE_KEY_TYPE key_type);
/system/libvintf/include/vintf/
DMapValueIterator.h29 using K = typename Map::key_type;
/system/core/libutils/include/utils/
DKeyedVector.h39 typedef KEY key_type; typedef
/system/keymaster/tests/
Dandroid_keymaster_test_utils.h409 const keymaster_keypair_t key_type, const void* key_params, in counting_generate_keypair()
412 int result = device(dev)->generate_keypair(device(dev), key_type, key_params, key_blob, in counting_generate_keypair()

12