Lines Matching refs:chunk_index
39 chunk_index: u64, in verity_check()
56 fsverity_walk(chunk_index, file_size, merkle_tree)?.try_fold( in verity_check()
76 chunk_index: u64, in fsverity_walk()
91 let offset_in_level = (chunk_index / leaves_per_hash) * SHA256_HASH_SIZE as u64;
101 let chunk_index = global_hash_offset / CHUNK_SIZE; localVariable
103 (chunk_index, hash_offset_in_chunk)
107 Ok(root_to_leaf_steps.into_iter().rev().map(move |(chunk_index, hash_offset_in_chunk)| {
112 let _ = merkle_tree.read_chunk(chunk_index, &mut merkle_chunk)?;
152 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
153 let size = self.chunked_file.read_chunk(chunk_index, buf)?; in read_chunk()
154 let root_hash = verity_check(&buf[..size], chunk_index, self.file_size, &self.merkle_tree) in read_chunk()
191 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
192 let start = chunk_index * CHUNK_SIZE; in read_chunk()
211 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
212 self.metadata.read_merkle_tree(chunk_index * CHUNK_SIZE, buf) in read_chunk()