Searched refs:VbMetaImageParseError (Results 1 – 3 of 3) sorted by relevance
35 pub enum VbMetaImageParseError { enum58 ParseError(#[from] VbMetaImageParseError),76 let file = File::open(path).map_err(VbMetaImageParseError::Io)?; in verify_path()77 let size = file.metadata().map_err(VbMetaImageParseError::Io)?.len(); in verify_path()88 image.seek(SeekFrom::Start(offset + size)).map_err(VbMetaImageParseError::Io)?; in verify_reader_region()92 return Err(VbMetaImageParseError::InvalidFooter.into()); in verify_reader_region()96 Err(VbMetaImageParseError::InvalidFooter) => (0, size), in verify_reader_region()101 image.seek(SeekFrom::Start(offset + vbmeta_offset)).map_err(VbMetaImageParseError::Io)?; in verify_reader_region()104 image.read_exact(&mut data).map_err(VbMetaImageParseError::Io)?; in verify_reader_region()147 pub fn descriptors(&self) -> Result<Descriptors<'_>, VbMetaImageParseError> { in descriptors() argument[all …]
24 use super::VbMetaImageParseError;50 pub(super) fn from_image(data: &[u8]) -> Result<Descriptors<'_>, VbMetaImageParseError> { in from_image() argument94 Err(VbMetaImageParseError::InvalidDescriptor) in from_image()115 pub fn to_hashtree(&self) -> Result<HashtreeDescriptor, VbMetaImageParseError> { in to_hashtree() argument123 return Err(VbMetaImageParseError::InvalidDescriptor); in to_hashtree()129 _ => Err(VbMetaImageParseError::InvalidDescriptor), in to_hashtree()
47 PayloadVbmetaError(#[from] vbmeta::VbMetaImageParseError),