Searched refs:vbmeta_offset (Results 1 – 4 of 4) sorted by relevance
248 assert!(footer.vbmeta_offset < total_len); in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()251 let vbmeta_offset_addr = ptr::addr_of!(footer.vbmeta_offset) as *const u8; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()270 let vbmeta_offset = footer.vbmeta_offset; in kernel_footer_with_vbmeta_offset_overwritten_fails_verification() localVariable271 assert_eq!(wrong_offset, vbmeta_offset); in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()313 let vbmeta_index: usize = (footer.vbmeta_offset + 1).try_into()?; in tampered_vbmeta_fails_verification()330 let public_key_offset = footer.vbmeta_offset as usize in vbmeta_with_public_key_overwritten_fails_verification()370 let flags_offset = usize::try_from(footer.vbmeta_offset)? + usize::try_from(flags_offset)?; in vbmeta_with_verification_flag_disabled_fails_verification()
89 let vbmeta_offset: usize = footer.vbmeta_offset.try_into()?; in extract_vbmeta_header() localVariable91 let vbmeta_src = &kernel[vbmeta_offset..(vbmeta_offset + vbmeta_size)]; in extract_vbmeta_header()
89 let (vbmeta_offset, vbmeta_size) = match read_avb_footer(&mut image) { in verify_reader_region()91 if footer.vbmeta_offset > size || footer.vbmeta_size > size - footer.vbmeta_offset { in verify_reader_region()94 (footer.vbmeta_offset, footer.vbmeta_size) in verify_reader_region()101 image.seek(SeekFrom::Start(offset + vbmeta_offset)).map_err(VbMetaImageParseError::Io)?; in verify_reader_region()
44 vbmeta_offset: (kernel_size as u64).to_be(),