Home
last modified time | relevance | path

Searched refs:eocd (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Virtualization/libs/apkzip/src/
Dziputil.rs54 let mut eocd = vec![0u8; eocd_size]; in zip_sections() localVariable
55 reader.read_exact(&mut eocd)?; in zip_sections()
57 (&eocd[0..]).get_u32_le() == EOCD_SIGNATURE, in zip_sections()
60 let (central_directory_size, central_directory_offset) = get_central_directory(&eocd)?; in zip_sections()
146 let (pre_eocd, eocd) = buf.split_at(buf.len() - EOCD_SIZE_WITHOUT_COMMENT); in test_reject_if_extra_data_between_cd_and_eocd()
147 let (_, cd_offset) = get_central_directory(eocd).unwrap(); in test_reject_if_extra_data_between_cd_and_eocd()
151 let res = zip_sections(Cursor::new([pre_eocd, cd, eocd].concat())); in test_reject_if_extra_data_between_cd_and_eocd()
/packages/modules/Virtualization/libs/apkverify/src/
Dsigutil.rs123 let mut eocd = self.bytes(self.eocd_offset, self.eocd_size)?; in eocd_for_verification() localVariable
130 set_central_directory_offset(&mut eocd, self.signing_block_offset)?; in eocd_for_verification()
131 Ok(Read::take(Box::new(Cursor::new(eocd)), self.eocd_size as u64)) in eocd_for_verification()