Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Draw_device.rs23 error::{map_km_error, Error, ErrorCode},
117 map_km_error(creator(&self.km_dev)).context(ks_err!("creator failed"))?; in create_and_store_key()
213 map_km_error({ in lookup_or_generate_key()
268 let upgraded_blob = map_km_error({ in upgrade_keyblob_if_required_with()
314 map_km_error({ in use_key_in_one_step()
322 map_km_error({ in use_key_in_one_step()
Doperation.rs129 use crate::error::{map_err_with, map_km_error, map_or_log_err, Error, ErrorCode, ResponseCode};
289 if let Err(e) = map_km_error(self.km_op.abort()) { in prune()
364 map_km_error(self.km_op.updateAad(aad_input, hat.as_ref(), tst.as_ref())) in update_aad()
388 map_km_error(self.km_op.update(input, hat.as_ref(), tst.as_ref())) in update()
418 map_km_error(self.km_op.finish( in finish()
449 map_km_error(self.km_op.abort()).context(ks_err!("KeyMint::abort failed.")) in abort()
Dsecurity_level.rs22 use crate::error::{self, map_km_error, map_or_log_err, Error, ErrorCode};
326 match map_km_error({ in create_operation()
572 map_km_error({ in generate_key()
588 map_km_error({ in generate_key()
610 None => map_km_error({ in generate_key()
676 let creation_result = map_km_error({ in import_key()
796 let creation_result = map_km_error(self.keymint.importWrappedKey( in import_wrapped_key()
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()
[all …]
Derror.rs81 pub fn map_km_error<T>(r: BinderResult<T>) -> Result<T, Error> { in map_km_error() function
343 map_km_error(binder_sse_error(ec)) in keystore_error_test()
354 let sse = map_km_error(binder_sse_error(1)); in keystore_error_test()
366 let binder_exception = map_km_error(binder_exception(ExceptionCode::TRANSACTION_FAILED)); in keystore_error_test()
Dglobals.rs32 use crate::{enforcements::Enforcements, error::map_km_error};
166 map_km_error(km_dev.deleteKey(blob))
304 map_km_error(keymint.getHardwareInfo()).context(ks_err!("Failed to get hardware info."))?; in connect_keymint()
Dmaintenance.rs18 use crate::error::map_km_error;
172 map_km_error(op(km_dev)).with_context(|| ks_err!("calling {}", name))?; in call_with_watchdog()
Dutils.rs18 use crate::error::{map_binder_status, map_km_error, Error, ErrorCode};
190 map_km_error(km_dev.upgradeKey(key_blob, upgrade_params)) in upgrade_keyblob_if_required_with()
Drkpd_client.rs315 use crate::error::map_km_error;
697 map_km_error(keymint.generateKey(&params, Some(&attestation_key))) in test_rkpd_attestation_key_upgrade()
Dlegacy_importer.rs21 use crate::error::{map_km_error, Error};
921 map_km_error(km_dev.getKeyCharacteristics(blob, &[], &[])) in get_key_characteristics_without_app_data()