Home
last modified time | relevance | path

Searched refs:VbMetaImageParseError (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs35 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
[all …]
Ddescriptor.rs24 use super::VbMetaImageParseError;
50 pub(super) fn from_image(data: &[u8]) -> Result<Descriptors<'_>, VbMetaImageParseError> { in from_image() argument
94 Err(VbMetaImageParseError::InvalidDescriptor) in from_image()
115 pub fn to_hashtree(&self) -> Result<HashtreeDescriptor, VbMetaImageParseError> { in to_hashtree() argument
123 return Err(VbMetaImageParseError::InvalidDescriptor); in to_hashtree()
129 _ => Err(VbMetaImageParseError::InvalidDescriptor), in to_hashtree()
/packages/modules/Virtualization/libs/apexutil/src/
Dlib.rs47 PayloadVbmetaError(#[from] vbmeta::VbMetaImageParseError),