Home
last modified time | relevance | path

Searched refs:Rc (Results 1 – 13 of 13) sorted by relevance

/system/security/keystore2/src/
Dapc.rs46 Rc(ResponseCode), enumerator
55 Error::Rc(ResponseCode::SYSTEM_ERROR) in sys()
60 Error::Rc(ResponseCode::OPERATION_PENDING) in pending()
65 Error::Rc(ResponseCode::CANCELLED) in cancelled()
70 Error::Rc(ResponseCode::ABORTED) in aborted()
75 Error::Rc(ResponseCode::IGNORED) in ignored()
80 Error::Rc(ResponseCode::UNIMPLEMENTED) in unimplemented()
106 Some(Error::Rc(rcode)) => rcode.0, in map_or_log_err()
317 .map_err(|rc| Error::Rc(compat_2_response_code(rc))) in present_prompt()
Dauthorization.rs45 Rc(ResponseCode), enumerator
76 if let Some(KeystoreError::Rc(ks_rcode)) = root_cause.downcast_ref::<KeystoreError>() { in map_or_log_err()
94 Some(Error::Rc(rcode)) => rcode.0, in map_or_log_err()
204 Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)) in on_lock_screen_event()
223 return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)) in get_auth_tokens_for_credstore()
Derror.rs47 Rc(ResponseCode), enumerator
66 Error::Rc(ResponseCode::SYSTEM_ERROR) in sys()
71 Error::Rc(ResponseCode::PERMISSION_DENIED) in perm()
177 Some(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in map_or_log_err()
213 Some(Error::Rc(rcode)) => rcode.0, in get_error_code()
239 Err(anyhow!(Error::Rc(rc))).context("nested nested rc") in nested_nested_rc()
Dlegacy_migrator.rs301 Some(&Error::Rc(ResponseCode::KEY_NOT_FOUND)) => {} in with_try_migrate()
314 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in with_try_migrate()
320 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in with_try_migrate()
334 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)).context("Legacy database is empty.") in with_try_migrate()
481 return Err(Error::Rc(ResponseCode::LOCKED)).context(concat!( in check_and_migrate()
492 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
507 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
543 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
593 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate_super_key()
Doperation.rs267 Err(_) => return Err(Error::Rc(ResponseCode::OPERATION_BUSY)), in prune()
281 return Err(Error::Rc(ResponseCode::OPERATION_BUSY)); in prune()
345 return Err(anyhow!(Error::Rc(ResponseCode::TOO_MUCH_DATA))); in check_input_length()
757 Err(Error::Rc(ResponseCode::OPERATION_BUSY)) => { in prune()
778 None => break Err(Error::Rc(ResponseCode::BACKEND_BUSY)), in prune()
835 Err(_) => Err(Error::Rc(ResponseCode::OPERATION_BUSY)) in with_locked_operation()
Dlegacy_blob.rs325 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in new_from_stream()
386 Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in new_from_stream()
389 _ => Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)).context(format!( in new_from_stream()
474 .ok_or(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in read_key_parameters()
487 .ok_or(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in read_key_parameters()
537 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in read_key_parameters()
568 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)).context(concat!( in read_characteristics_file()
1025 return Err(KsError::Rc(ResponseCode::LOCKED)).context(format!( in load_by_uid_alias()
1040 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)).context( in load_by_uid_alias()
1065 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)).context( in load_by_uid_alias()
[all …]
Dservice.rs173 .ok_or(Error::Rc(ResponseCode::VALUE_CORRUPTED)) in get_key_entry()
201 Some(Error::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in update_subcomponent()
221 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)).context("No key to update."); in update_subcomponent()
235 return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)) in update_subcomponent()
Dsuper_key.rs202 .ok_or(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in decrypt()
442 .ok_or(Error::Rc(ResponseCode::LOCKED)) in unwrap_key_if_required()
462 (iv, tag) => Err(Error::Rc(ResponseCode::VALUE_CORRUPTED)).context(format!( in unwrap_key_with_key()
481 Err(Error::Rc(ResponseCode::VALUE_CORRUPTED)).context(format!( in unwrap_key_with_key()
635 return Err(Error::Rc(ResponseCode::VALUE_CORRUPTED)).context(format!( in extract_super_key_from_key_entry()
654 Err(Error::Rc(ResponseCode::VALUE_CORRUPTED)) in extract_super_key_from_key_entry()
697 Err(Error::Rc(ResponseCode::LOCKED)).context("In super_encrypt. Device is locked.") in super_encrypt_on_key_init()
699 UserState::Uninitialized => Err(Error::Rc(ResponseCode::UNINITIALIZED)) in super_encrypt_on_key_init()
786 .ok_or(Error::Rc(ResponseCode::LOCKED)) in handle_super_encryption_on_key_init()
Draw_device.rs162 Some(&Error::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in not_found_is_none()
241 .ok_or(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in lookup_or_generate_key()
Dmaintenance.rs95 Err(Error::Rc(ResponseCode::LOCKED)) in on_user_password_changed()
243 return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)).context(concat!( in migrate_key_namespace()
Ddatabase.rs1251 Some(KsError::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(false), in key_exists()
1331 Some(KsError::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in load_super_key()
1744 row.map_or_else(|| Err(KsError::Rc(ResponseCode::KEY_NOT_FOUND)), Ok)? in store_signed_attestation_certificate_chain()
1835 return Err(KsError::Rc(ResponseCode::OUT_OF_KEYS)).context("Out of keys."); in assign_attestation_key()
2175 return Err(KsError::Rc(ResponseCode::INVALID_ARGUMENT)) in migrate_key_namespace()
2187 .ok_or(KsError::Rc(ResponseCode::INVALID_ARGUMENT)) in migrate_key_namespace()
2203 return Err(KsError::Rc(ResponseCode::INVALID_ARGUMENT)) in migrate_key_namespace()
2249 return Err(KsError::Rc(ResponseCode::INVALID_ARGUMENT)) in store_new_key()
2307 return Err(KsError::Rc(ResponseCode::INVALID_ARGUMENT)).context( in store_new_certificate()
2363 row.map_or_else(|| Err(KsError::Rc(ResponseCode::KEY_NOT_FOUND)), Ok)? in load_key_entry_id()
[all …]
Denforcements.rs840 return Err(AuthzError::Rc(AuthzResponseCode::NO_AUTH_TOKEN_FOUND)) in get_auth_tokens()
844 return Err(AuthzError::Rc(AuthzResponseCode::NO_AUTH_TOKEN_FOUND)) in get_auth_tokens()
Dkey_parameter.rs462 .map_err(|_| KeystoreError::Rc(ResponseCode::VALUE_CORRUPTED))