Lines Matching refs:verity_data
60 const ApexVerityData& verity_data, in GenerateHashTree() argument
68 auto block_size = verity_data.desc->hash_block_size; in GenerateHashTree()
69 auto image_size = verity_data.desc->image_size; in GenerateHashTree()
71 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in GenerateHashTree()
74 << verity_data.hash_algorithm; in GenerateHashTree()
78 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in GenerateHashTree()
100 auto golden_digest = HexToBin(verity_data.root_digest); in GenerateHashTree()
118 const ApexVerityData& verity_data) { in CalculateRootDigest() argument
124 auto block_size = verity_data.desc->hash_block_size; in CalculateRootDigest()
125 auto image_size = verity_data.desc->image_size; in CalculateRootDigest()
131 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in CalculateRootDigest()
134 << verity_data.hash_algorithm; in CalculateRootDigest()
137 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in CalculateRootDigest()
145 result.resize(verity_data.root_digest.size()); in CalculateRootDigest()
152 const ApexFile& apex, const ApexVerityData& verity_data, in PrepareHashTree() argument
163 auto digest = CalculateRootDigest(hashtree_file, verity_data); in PrepareHashTree()
167 if (*digest != verity_data.root_digest) { in PrepareHashTree()
171 << verity_data.root_digest; in PrepareHashTree()
179 if (auto st = GenerateHashTree(apex, verity_data, hashtree_file); in PrepareHashTree()