Lines Matching refs:apk_sections
245 let apk_sections = ApkSections::new(apk_file).unwrap(); in test_apk_sections() localVariable
246 let mut reader = &apk_sections.inner; in test_apk_sections()
250 apk_sections.signing_block_offset + apk_sections.signing_block_size, in test_apk_sections()
251 apk_sections.central_directory_offset in test_apk_sections()
254 apk_sections.central_directory_offset as u64 - size_of_val(&APK_SIG_BLOCK_MAGIC) as u64, in test_apk_sections()
262 apk_sections.central_directory_offset + apk_sections.central_directory_size, in test_apk_sections()
263 apk_sections.eocd_offset in test_apk_sections()
269 (apk_sections.eocd_offset + apk_sections.eocd_size) as u64 in test_apk_sections()
276 let mut apk_sections = ApkSections::new(apk_file).unwrap(); in test_apk_digest() localVariable
277 let digest = apk_sections.compute_digest(SignatureAlgorithmID::DsaWithSha256).unwrap(); in test_apk_digest()
287 let mut apk_sections = ApkSections::new(apk_file).unwrap(); in test_apk_sections_cannot_find_signature() localVariable
288 let result = apk_sections.find_signature(APK_SIGNATURE_SCHEME_V3_BLOCK_ID); in test_apk_sections_cannot_find_signature()
303 let mut apk_sections = ApkSections::new(apk_file).unwrap(); in test_apk_sections_find_signature() localVariable
304 let signature = apk_sections.find_signature(APK_SIGNATURE_SCHEME_V3_BLOCK_ID).unwrap(); in test_apk_sections_find_signature()