• Home
  • Raw
  • Download

Lines Matching refs:Err

294                     return Err(Error::BadEncoding)  in decode_alias()
300 return Err(Error::BadEncoding).context("In decode_alias: could not decode filename."); in decode_alias()
311 return Err(Error::BadLen).context("In new_from_stream.")?; in new_from_stream()
325 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in new_from_stream()
333 return Err(Error::BadLen).context(format!( 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()
516 Err(anyhow::anyhow!("Invalid.")) in read_key_parameters()
535 TagType::INVALID => Err(anyhow::anyhow!("Invalid.")), 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()
633 Err(e) => match e.kind() { in read_generic_blob()
635 _ => return Err(e).context("In read_generic_blob."), in read_generic_blob()
668 if let Err(e) = Self::with_retry_interrupted(|| fs::remove_file(path.as_path())) { in remove_legacy_keystore_entry()
671 _ => return Err(e).context("In remove_legacy_keystore_entry."), in remove_legacy_keystore_entry()
688 Err(e) => match e.kind() { in list_legacy_keystore_entries_for_uid()
691 return Err(e).context(format!( in list_legacy_keystore_entries_for_uid()
851 Err(e) => match e.kind() { in list_user()
854 return Err(e).context(format!( in list_user()
929 Err(e) => match e.kind() { in with_retry_interrupted()
931 _ => return Err(e), in with_retry_interrupted()
944 if let Err(e) = Self::with_retry_interrupted(|| fs::remove_file(path.as_path())) { in remove_keystore_entry()
953 if let Err(e) = Self::with_retry_interrupted(|| fs::remove_file(path.as_path())) { in remove_keystore_entry()
971 if let Err(e) = Self::with_retry_interrupted(|| fs::remove_file(path.as_path())) { in remove_keystore_entry()
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()
1077 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)) in load_by_uid_alias()
1116 return Err(KsError::Rc(ResponseCode::VALUE_CORRUPTED)).context( in load_super_key()
1196 Err(_) => panic!("random_alias: {:x?}\nencoded {}", random_alias, encoded), in decode_encode_alias_test()
1205 Err(anyhow!("should not be called")) in read_golden_key_blob_test()
1215 |_, _, _, _, _| Err(anyhow!("should not be called")), in read_golden_key_blob_test()
1265 Err(anyhow!("should not be called")) in read_golden_key_blob_too_short_test()