Home
last modified time | relevance | path

Searched refs:AvbFooter (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Virtualization/pvmfw/avb/fuzz/
Dwith_footer_verify_fuzzer.rs19 AvbFooter, AvbVBMetaImageHeader, AVB_FOOTER_MAGIC, AVB_FOOTER_MAGIC_LEN, AVB_MAGIC,
39 let avb_footer = AvbFooter {
49 let avb_footer = unsafe { transmute::<AvbFooter, [u8; size_of::<AvbFooter>()]>(avb_footer) };
51 let mut modified_kernel = vec![0u8; kernel_and_vbmeta.len() + size_of::<AvbFooter>()];
/packages/modules/Virtualization/pvmfw/avb/tests/
Dutils.rs21 avb_footer_validate_and_byteswap, avb_vbmeta_image_header_to_host_byte_order, AvbFooter,
75 pub fn extract_avb_footer(kernel: &[u8]) -> Result<AvbFooter> { in extract_avb_footer() argument
76 let footer_start = kernel.len() - size_of::<AvbFooter>(); in extract_avb_footer()
79 transmute::<[u8; size_of::<AvbFooter>()], AvbFooter>(kernel[footer_start..].try_into()?) in extract_avb_footer()
88 pub fn extract_vbmeta_header(kernel: &[u8], footer: &AvbFooter) -> Result<AvbVBMetaImageHeader> { in extract_vbmeta_header()
Dapi_test.rs21 use avb_bindgen::{AvbFooter, AvbVBMetaImageHeader};
258 let footer_start = kernel.len() - size_of::<AvbFooter>(); in kernel_footer_with_vbmeta_offset_overwritten_fails_verification()
285 let avb_footer_index = kernel.len() - size_of::<AvbFooter>() + RANDOM_FOOTER_POS; in tampered_kernel_footer_fails_verification()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs21 avb_vbmeta_image_verify, AvbAlgorithmType, AvbFooter, AvbVBMetaImageHeader,
186 fn read_avb_footer<R: Read + Seek>(image: &mut R) -> Result<AvbFooter, VbMetaImageParseError> { in read_avb_footer() argument
187 image.seek(SeekFrom::Current(-(size_of::<AvbFooter>() as i64)))?; in read_avb_footer()
188 let mut raw_footer = [0u8; size_of::<AvbFooter>()]; in read_avb_footer()
191 let mut footer = unsafe { transmute::<[u8; size_of::<AvbFooter>()], AvbFooter>(raw_footer) }; in read_avb_footer()