Searched refs:hash_offset (Results 1 – 2 of 2) sorted by relevance
/system/extras/libfec/ |
D | fec_verity.cpp | 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() [all …]
|
D | fec_read.cpp | 95 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero() local 97 if (unlikely(hash_offset > in is_zero() 102 return !memcmp(v->zero_hash, &v->hash[hash_offset], SHA256_DIGEST_LENGTH); in is_zero()
|