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.cpp102 size_t level_blocks; in CalculateSize() local
105 level_blocks = in CalculateSize()
108 verity_blocks += level_blocks; in CalculateSize()
109 } while (level_blocks > 1); in CalculateSize()
271 const auto& level_blocks = verity_tree_[i - 1]; in CheckHashTree() local
272 if (offset + level_blocks.size() > hash_tree.size()) { in CheckHashTree()
276 auto iter = std::mismatch(level_blocks.begin(), level_blocks.end(), in CheckHashTree()
279 if (iter != level_blocks.end()) { in CheckHashTree()
281 << std::distance(level_blocks.begin(), iter); in CheckHashTree()
284 offset += level_blocks.size(); in CheckHashTree()
[all …]