Lines Matching refs:desc
199 std::string getSalt(const AvbHashtreeDescriptor& desc, in getSalt() argument
201 const uint8_t* desc_salt = trailingData + desc.partition_name_len; in getSalt()
203 return bytes_to_hex(desc_salt, desc.salt_len); in getSalt()
206 std::string getDigest(const AvbHashtreeDescriptor& desc, in getDigest() argument
209 trailingData + desc.partition_name_len + desc.salt_len; in getDigest()
211 return bytes_to_hex(desc_digest, desc.root_digest_len); in getDigest()
369 AvbDescriptor desc; in findDescriptor() local
370 if (!avb_descriptor_validate_and_byteswap(descriptors[i], &desc)) { in findDescriptor()
375 if (desc.tag != AVB_DESCRIPTOR_TAG_HASHTREE) { in findDescriptor()
389 const AvbHashtreeDescriptor* desc) { in verifyDescriptor() argument
392 if (!avb_hashtree_descriptor_validate_and_byteswap(desc, in verifyDescriptor()
436 verityData.desc = std::move(*verifiedDescriptor); in VerifyApexVerity()
441 verityData.salt = getSalt(*verityData.desc, trailingData); in VerifyApexVerity()
442 verityData.root_digest = getDigest(*verityData.desc, trailingData); in VerifyApexVerity()