Home
last modified time | relevance | path

Searched refs:km_dev (Results 1 – 9 of 9) sorted by relevance

/system/security/keystore2/src/
Draw_device.rs51 km_dev: Strong<dyn IKeyMintDevice>, field
71 let (km_dev, hw_info, km_uuid) = in get()
75 km_dev, in get()
117 map_km_error(creator(&self.km_dev)).context(ks_err!("creator failed"))?; in create_and_store_key()
221 self.km_dev.getKeyCharacteristics(key_blob, &[], &[]) in lookup_or_generate_key()
236 self.create_and_store_key(db, key_desc, key_type, |km_dev| { in lookup_or_generate_key()
237 km_dev.generateKey(params, None) in lookup_or_generate_key()
273 self.km_dev.upgradeKey(&key_blob, &[]) in upgrade_keyblob_if_required_with()
316 self.km_dev.begin(purpose, blob, operation_parameters, auth_token) in use_key_in_one_step()
Dentropy.rs67 for (i, km_dev) in km_devs.iter().enumerate() { in feed_devices()
70 if let Err(e) = km_dev.addRngEntropy(sub_data) { in feed_devices()
Dboot_level_keys.rs113 let (km_dev, deny_later_strategy) = get_level_zero_key_km_and_strategy() in get_level_zero_key()
117 km_dev.security_level(), in get_level_zero_key()
120 let required_security_level = km_dev.security_level(); in get_level_zero_key()
137 let (key_id_guard, key_entry) = km_dev in get_level_zero_key()
164 let level_zero_key = km_dev in get_level_zero_key()
Dsecurity_level.rs675 let km_dev = &self.keymint; in import_key() localVariable
679 km_dev.importKey(&params, format, key_data, None /* attestKey */) in import_key()
842 km_dev: &dyn IKeyMintDevice, in upgrade_keyblob_if_required_with()
853 km_dev, in upgrade_keyblob_if_required_with()
922 let km_dev = &self.keymint; in convert_storage_key_to_ephemeral() localVariable
931 map_km_error(km_dev.convertStorageKeyToEphemeral(key_blob)) in convert_storage_key_to_ephemeral()
942 map_km_error(km_dev.upgradeKey(key_blob, &[])) in convert_storage_key_to_ephemeral()
950 map_km_error(km_dev.convertStorageKeyToEphemeral(&upgraded_blob)) in convert_storage_key_to_ephemeral()
979 let km_dev = &self.keymint; in delete_key() localVariable
983 map_km_error(km_dev.deleteKey(key_blob)).context(ks_err!("keymint device deleteKey")) in delete_key()
Dsuper_key.rs194 km_dev: &KeyMintDevice, in decrypt()
215 let key = ZVec::try_from(km_dev.use_key_in_one_step( in decrypt()
943 let km_dev: KeyMintDevice = in lock_screen_lock_bound_key() localVariable
964 km_dev.create_and_store_key( in lock_screen_lock_bound_key()
1018 let km_dev: KeyMintDevice = KeyMintDevice::get(SecurityLevel::TRUSTED_ENVIRONMENT) in try_unlock_user_with_biometric() localVariable
1027 &km_dev, in try_unlock_user_with_biometric()
1035 &km_dev, in try_unlock_user_with_biometric()
Dmaintenance.rs166 let (km_dev, _, _) = in call_with_watchdog()
172 map_km_error(op(km_dev)).with_context(|| ks_err!("calling {}", name))?; in call_with_watchdog()
Dglobals.rs164 let km_dev = get_keymint_dev_by_uuid(uuid).map(|(dev, _)| dev)?; localVariable
166 map_km_error(km_dev.deleteKey(blob))
Dutils.rs173 km_dev: &dyn IKeyMintDevice, in upgrade_keyblob_if_required_with()
190 map_km_error(km_dev.upgradeKey(key_blob, upgrade_params)) in upgrade_keyblob_if_required_with()
Dlegacy_importer.rs912 let (km_dev, _) = crate::globals::get_keymint_dev_by_uuid(uuid) in get_key_characteristics_without_app_data()
916 &*km_dev, in get_key_characteristics_without_app_data()
921 map_km_error(km_dev.getKeyCharacteristics(blob, &[], &[])) in get_key_characteristics_without_app_data()