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