Home
last modified time | relevance | path

Searched refs:root_hash (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Virtualization/microdroid_manager/src/
Dverify.rs103 .map(|(i, root_hash)| data.extra_apk_root_hash_eq(i, root_hash)) in verify_payload()
194 root_hash: Box<[u8]>, in get_data_from_apk()
207 root_hash: root_hash.into(), in get_data_from_apk()
274 if let Some(root_hash) = argument.saved_root_hash { in run_apkdmverity()
275 cmd.arg(&hex::encode(root_hash)); in run_apkdmverity()
Dinstance.rs285 pub fn extra_apk_root_hash_eq(&self, i: usize, root_hash: &[u8]) -> bool { in extra_apk_root_hash_eq()
286 self.extra_apks_data.get(i).map_or(false, |apk| apk.root_hash_eq(root_hash)) in extra_apk_root_hash_eq()
292 pub root_hash: Vec<u8>, field
299 pub fn root_hash_eq(&self, root_hash: &[u8]) -> bool { in root_hash_eq()
300 self.root_hash == root_hash in root_hash_eq()
Ddice.rs39 code_hash_ctx.update(instance_data.apk_data.root_hash.as_ref()); in dice_derivation()
42 code_hash_ctx.update(extra_apk.root_hash.as_ref()); in dice_derivation()
108 code_hash: apk.root_hash.clone(), in for_apk()
/packages/modules/Virtualization/authfs/src/fsverity/
Dverifier.rs121 root_hash: HashBuffer, field
141 let root_hash = sha256(&buf[..]); in new() localVariable
142 if expected_digest == build_fsverity_digest(&root_hash, file_size) { in new()
144 Ok(VerifiedFileReader { chunked_file, file_size, merkle_tree, root_hash }) in new()
154 let root_hash = verity_check(&buf[..size], chunk_index, self.file_size, &self.merkle_tree) in read_chunk() localVariable
156 if root_hash != self.root_hash { in read_chunk()
Dcommon.rs71 pub fn build_fsverity_digest(root_hash: &Sha256Hash, file_size: u64) -> Sha256Hash { in build_fsverity_digest()
81 hash.update(root_hash); // root_hash, first 32 bytes in build_fsverity_digest()
Dbuilder.rs144 let root_hash = self.calculate_root_hash()?; in calculate_fsverity_digest() localVariable
145 Ok(build_fsverity_digest(&root_hash, self.file_size)) in calculate_fsverity_digest()
/packages/modules/Virtualization/libs/apkverify/src/
Dhashtree.rs25 pub root_hash: Vec<u8>, field
43 let root_hash = if tree.is_empty() { in from() localVariable
51 Ok(HashTree { tree, root_hash }) in from()
214 assert_eq!(golden_root_hash, ht.root_hash.as_slice()); in compare_with_golden_output()
Dv4.rs176 ret.hashing_info.raw_root_hash = hash_tree.root_hash.into_boxed_slice(); in create()