Home
last modified time | relevance | path

Searched refs:merkle_tree (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/authfs/src/fsverity/
Deditor.rs75 merkle_tree: Arc<RwLock<MerkleLeaves>>, field
81 Self { file, merkle_tree: Arc::new(RwLock::new(MerkleLeaves::new())) } in new()
91 let merkle_tree = self.merkle_tree.read().unwrap(); in calculate_fsverity_digest() localVariable
92 merkle_tree.calculate_fsverity_digest().map_err(|e| io::Error::new(io::ErrorKind::Other, e)) in calculate_fsverity_digest()
130 merkle_tree: &mut MerkleLeaves, in new_hash_for_incomplete_write()
139 if merkle_tree.is_index_valid(output_chunk_index) { in new_hash_for_incomplete_write()
144 if !merkle_tree.is_consistent(output_chunk_index, &hash) { in new_hash_for_incomplete_write()
162 merkle_tree: &mut MerkleLeaves, in new_chunk_hash()
175 merkle_tree, in new_chunk_hash()
181 self.merkle_tree.read().unwrap().file_size() in size()
[all …]
Dverifier.rs41 merkle_tree: &T, in verity_check()
56 fsverity_walk(chunk_index, file_size, merkle_tree)?.try_fold( in verity_check()
78 merkle_tree: &T, in fsverity_walk()
112 let _ = merkle_tree.read_chunk(chunk_index, &mut merkle_chunk)?;
120 merkle_tree: M, field
129 merkle_tree: M, in new()
136 let size = merkle_tree.read_chunk(0, &mut buf)?; 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()
/packages/modules/Virtualization/libs/apkverify/src/
Dv4.rs211 pub fn merkle_tree(&mut self) -> Result<Vec<u8>> { in merkle_tree() method
382 created.merkle_tree().unwrap().as_slice(), in digest_from_apk()
383 golden.merkle_tree().unwrap().as_slice() in digest_from_apk()