Lines Matching refs:VbMetaImageParseError
35 pub enum VbMetaImageParseError { enum
58 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
171 Err(VbMetaImageParseError::InvalidHeader.into()) in verify_vbmeta_image()
174 Err(VbMetaImageParseError::UnsupportedVersion.into()) in verify_vbmeta_image()
186 fn read_avb_footer<R: Read + Seek>(image: &mut R) -> Result<AvbFooter, VbMetaImageParseError> { in read_avb_footer() argument
196 Err(VbMetaImageParseError::InvalidFooter) in read_avb_footer()