Lines Matching refs:Err
230 return Err(Error::sys()).context(concat!( in create_operation()
279 Err(Error::Km(ErrorCode::INVALID_ARGUMENT)) in create_operation()
283 _ => Err(Error::Km(ErrorCode::INVALID_ARGUMENT)) in create_operation()
327 Err(Error::Km(ErrorCode::TOO_MANY_OPERATIONS)) => { in create_operation()
331 v @ Err(Error::Km(ErrorCode::INVALID_KEY_BLOB)) => { in create_operation()
362 return Err(Error::sys()).context(concat!( in create_operation()
473 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in generate_key()
590 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in import_key()
623 v => Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in import_key()
655 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context(format!( in import_wrapped_key()
666 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context( in import_wrapped_key()
809 Err(Error::Km(ErrorCode::KEY_REQUIRES_UPGRADE)) => { in upgrade_keyblob_if_required_with()
836 Err(e) => Err(e).context(concat!( in upgrade_keyblob_if_required_with()
869 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)).context(concat!( in convert_storage_key_to_ephemeral()
903 Err(error::Error::Km(ErrorCode::KEY_REQUIRES_UPGRADE)) => { in convert_storage_key_to_ephemeral()
928 Err(e) => Err(e) in convert_storage_key_to_ephemeral()
935 return Err(error::Error::Km(ErrorCode::INVALID_ARGUMENT)) in delete_key()