Home
last modified time | relevance | path

Searched refs:hash_offset (Results 1 – 4 of 4) sorted by relevance

/system/extras/libfec/
Dfec_verity.cpp181 bool hashtree_info::ecc_read_hashes(fec_handle *f, uint64_t hash_offset, in ecc_read_hashes() argument
187 fec_pread(f, hash, digest_length_, hash_offset) != digest_length_) { in ecc_read_hashes()
188 error("failed to read hash tree: offset %" PRIu64 ": %s", hash_offset, in ecc_read_hashes()
219 uint64_t hash_offset = hash_start; in verify_tree() local
220 uint64_t data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
223 if (!raw_pread(f->fd, data, FEC_BLOCKSIZE, hash_offset) || in verify_tree()
227 hash_offset, data) || in verify_tree()
232 !raw_pwrite(f->fd, data, FEC_BLOCKSIZE, hash_offset)) { in verify_tree()
272 data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
282 hash_offset + j * padded_digest_length_) || in verify_tree()
[all …]
Dfec_read.cpp94 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero() local
96 if (unlikely(hash_offset > in is_zero()
101 return !memcmp(hashtree.zero_hash.data(), &hashtree.hash_data[hash_offset], in is_zero()
Dfec_private.h104 bool ecc_read_hashes(fec_handle *f, uint64_t hash_offset, uint8_t *hash,
/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp381 EXPECT_EQ(0, vbmeta_header->hash_offset); in TEST_F()
406 EXPECT_EQ(0, vbmeta_header->hash_offset); in TEST_F()
564 authentication_block_offset + header->hash_offset, in TEST_F()
775 footer->vbmeta_offset + authentication_block_offset + header->hash_offset, in TEST_F()
1059 (system_footer->vbmeta_offset + authentication_block_offset + system_header->hash_offset), in TEST_F()
1423 ModifyFile(vbmeta_path, authentication_block_offset + header->hash_offset, header->hash_size); in TEST_F()