Home
last modified time | relevance | path

Searched refs:level_blocks (Results 1 – 2 of 2) sorted by relevance

/system/extras/verity/
Dbuild_verity_tree_utils.cpp25 uint64_t level_blocks = div_round_up(data_size, block_size); in verity_tree_blocks() local
29 level_blocks = div_round_up(level_blocks, hashes_per_block); in verity_tree_blocks()
32 CHECK_LE(level_blocks, std::numeric_limits<size_t>::max()); in verity_tree_blocks()
33 return level_blocks; in verity_tree_blocks()
Dhash_tree_builder.cpp97 size_t level_blocks; in CalculateSize() local
100 level_blocks = in CalculateSize()
103 verity_blocks += level_blocks; in CalculateSize()
104 } while (level_blocks > 1); in CalculateSize()
258 const auto& level_blocks = verity_tree_[i - 1]; in CheckHashTree() local
259 if (offset + level_blocks.size() > hash_tree.size()) { in CheckHashTree()
263 auto iter = std::mismatch(level_blocks.begin(), level_blocks.end(), in CheckHashTree()
266 if (iter != level_blocks.end()) { in CheckHashTree()
268 << std::distance(level_blocks.begin(), iter); in CheckHashTree()
271 offset += level_blocks.size(); in CheckHashTree()
[all …]