Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Draw_device.rs22 error::{map_km_error, Error, ErrorCode},
110 let creation_result = map_km_error(creator(&self.km_dev)) in create_and_store_key()
208 map_km_error({ in lookup_or_generate_key()
263 let upgraded_blob = map_km_error({ in upgrade_keyblob_if_required_with()
317 map_km_error({ in use_key_in_one_step()
327 map_km_error({ in use_key_in_one_step()
Dsecurity_level.rs22 use crate::error::{self, map_km_error, map_or_log_err, Error, ErrorCode};
320 match map_km_error({ in create_operation()
532 map_km_error({ in generate_key()
547 map_km_error({ in generate_key()
563 None => map_km_error({ in generate_key()
630 let creation_result = map_km_error({ in import_key()
752 let creation_result = map_km_error(km_dev.importWrappedKey( in import_wrapped_key()
818 map_km_error(km_dev.upgradeKey(key_blob, params)) in upgrade_keyblob_if_required_with()
898 map_km_error(km_dev.convertStorageKeyToEphemeral(key_blob)) in convert_storage_key_to_ephemeral()
909 map_km_error(km_dev.upgradeKey(key_blob, &[])) in convert_storage_key_to_ephemeral()
[all …]
Derror.rs80 pub fn map_km_error<T>(r: BinderResult<T>) -> Result<T, Error> { in map_km_error() function
325 map_km_error(binder_sse_error(ec)) in keystore_error_test()
336 let sse = map_km_error(binder_sse_error(1)); in keystore_error_test()
348 let binder_exception = map_km_error(binder_exception(ExceptionCode::TRANSACTION_FAILED)); in keystore_error_test()
Doperation.rs129 use crate::error::{map_err_with, map_km_error, map_or_log_err, Error, ErrorCode, ResponseCode};
297 if let Err(e) = map_km_error(km_op.abort()) { in prune()
377 map_km_error(km_op.updateAad(aad_input, hat.as_ref(), tst.as_ref())) in update_aad()
404 map_km_error(km_op.update(input, hat.as_ref(), tst.as_ref())) in update()
437 map_km_error(km_op.finish( in finish()
470 map_km_error(km_op.abort()).context("In abort: KeyMint::abort failed.") in abort()
Dglobals.rs31 use crate::{enforcements::Enforcements, error::map_km_error};
172 map_km_error(km_dev.deleteKey(&*blob))
239 let mut hw_info = map_km_error(keymint.getHardwareInfo()) in connect_keymint()
Dmaintenance.rs18 use crate::error::map_km_error;
168 map_km_error(op(km_dev)).with_context(|| format!("In keymint device: calling {}", name))?; in call_with_watchdog()