Lines Matching refs:idsig
47 for (apk, idsig, name, roothash) in apks.tuples() { in main()
53 let ret = enable_verity(apk, idsig, name, roothash.as_deref())?; in main()
97 idsig: P, in enable_verity()
122 let sig = V4Signature::from_idsig_path(&idsig)?; in enable_verity()
129 &idsig, offset, size, /* direct_io */ false, /* writable */ false, in enable_verity()
148 .context(format!("Merkle tree in {:?} is not compatible with dm-verity", &idsig))?; in enable_verity()
197 fn prepare_inputs(test_dir: &Path, apk: &[u8], idsig: &[u8]) -> (PathBuf, PathBuf) { in prepare_inputs()
201 create_block_aligned_file(&idsig_path, idsig); in prepare_inputs()
205 fn run_test(apk: &[u8], idsig: &[u8], name: &str, check: fn(TestContext)) { in run_test()
206 run_test_with_hash(apk, idsig, name, None, check); in run_test()
211 idsig: &[u8], in run_test_with_hash()
217 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in run_test_with_hash()
239 let idsig = include_bytes!("../testdata/test.apk.idsig"); in correct_inputs() localVariable
240 run_test(apk.as_ref(), idsig.as_ref(), "correct", |ctx| { in correct_inputs()
253 let idsig = include_bytes!("../testdata/test.apk.idsig"); in incorrect_apk() localVariable
261 run_test(modified_apk.as_slice(), idsig.as_ref(), "incorrect_apk", |ctx| { in incorrect_apk()
271 let idsig = include_bytes!("../testdata/test.apk.idsig"); in incorrect_merkle_tree() localVariable
279 modified_idsig.extend_from_slice(idsig); in incorrect_merkle_tree()
296 let idsig = include_bytes!("../testdata/test.apk.idsig"); in tampered_apk() localVariable
298 run_test(apk.as_ref(), idsig.as_ref(), "tampered_apk", |ctx| { in tampered_apk()
318 let idsig = include_bytes!("../testdata/test.apk.idsig"); in tampered_idsig() localVariable
319 run_test(apk.as_ref(), idsig.as_ref(), "tampered_idsig", |ctx| { in tampered_idsig()
336 let idsig = include_bytes!("../testdata/test.apk.idsig"); in inputs_are_block_devices() localVariable
339 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in inputs_are_block_devices()
387 let idsig = include_bytes!("../testdata/test.apk.idsig"); in correct_custom_roothash() localVariable
394 idsig.as_ref(), in correct_custom_roothash()