Searched refs:Rc (Results 1 – 13 of 13) sorted by relevance
/system/security/keystore2/src/ |
D | apc.rs | 46 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()
|
D | authorization.rs | 45 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()
|
D | error.rs | 47 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()
|
D | legacy_migrator.rs | 301 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()
|
D | operation.rs | 267 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()
|
D | legacy_blob.rs | 325 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 …]
|
D | service.rs | 173 .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()
|
D | super_key.rs | 202 .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()
|
D | raw_device.rs | 162 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()
|
D | maintenance.rs | 95 Err(Error::Rc(ResponseCode::LOCKED)) in on_user_password_changed() 243 return Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)).context(concat!( in migrate_key_namespace()
|
D | database.rs | 1251 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 …]
|
D | enforcements.rs | 840 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()
|
D | key_parameter.rs | 462 .map_err(|_| KeystoreError::Rc(ResponseCode::VALUE_CORRUPTED))
|