Lines Matching refs:hash_offset
159 static bool ecc_read_hashes(fec_handle *f, uint64_t hash_offset, in ecc_read_hashes() argument
164 if (hash && fec_pread(f, hash, SHA256_DIGEST_LENGTH, hash_offset) != in ecc_read_hashes()
166 error("failed to read hash tree: offset %" PRIu64 ": %s", hash_offset, in ecc_read_hashes()
203 uint64_t hash_offset = v->hash_start; in verify_tree() local
204 uint64_t data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
209 if (!raw_pread(f, data, FEC_BLOCKSIZE, hash_offset) || in verify_tree()
212 if (!ecc_read_hashes(f, 0, NULL, hash_offset, data) || in verify_tree()
217 !raw_pwrite(f, data, FEC_BLOCKSIZE, hash_offset)) { in verify_tree()
262 data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
271 hash_offset + j * SHA256_DIGEST_LENGTH) || in verify_tree()
281 hash_offset + j * SHA256_DIGEST_LENGTH, hash, in verify_tree()
286 hash_offset, data_offset, j); in verify_tree()
294 hash_offset + j * SHA256_DIGEST_LENGTH) || in verify_tree()
309 hash_offset = data_offset; in verify_tree()