Searched defs:hash_offset (Results 1 - 2 of 2) sorted by relevance
/system/extras/libfec/ |
H A D | fec_read.cpp | 93 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; local 95 if (unlikely(hash_offset > 100 return !memcmp(v->zero_hash, &v->hash[hash_offset], SHA256_DIGEST_LENGTH);
|
H A D | fec_verity.cpp | 159 static bool ecc_read_hashes(fec_handle *f, uint64_t hash_offset, argument 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; local 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 [all...] |
Completed in 39 milliseconds