Searched refs:verity_data (Results 1 – 7 of 7) sorted by relevance
/system/apex/apexd/ |
D | apexd_verity.cpp | 63 const ApexVerityData& verity_data, in GenerateHashTree() argument 71 auto block_size = verity_data.desc->hash_block_size; in GenerateHashTree() 72 auto image_size = verity_data.desc->image_size; in GenerateHashTree() 74 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in GenerateHashTree() 77 << verity_data.hash_algorithm; in GenerateHashTree() 81 if (!builder->Initialize(image_size, HexToBin(verity_data.salt))) { in GenerateHashTree() 106 auto golden_digest = HexToBin(verity_data.root_digest); in GenerateHashTree() 124 const ApexVerityData& verity_data) { in CalculateRootDigest() argument 130 auto block_size = verity_data.desc->hash_block_size; in CalculateRootDigest() 131 auto image_size = verity_data.desc->image_size; in CalculateRootDigest() [all …]
|
D | apexd_verity_test.cpp | 51 auto verity_data = apex->VerifyApexVerity(apex->GetBundledPublicKey()); in TEST() local 52 ASSERT_TRUE(IsOk(verity_data)); in TEST() 55 auto status = PrepareHashTree(*apex, *verity_data, hashtree_file); in TEST() 65 status = PrepareHashTree(*apex, *verity_data, hashtree_file); in TEST() 83 auto verity_data = apex->VerifyApexVerity(apex->GetBundledPublicKey()); in TEST() local 84 ASSERT_TRUE(IsOk(verity_data)); in TEST() 87 auto status = PrepareHashTree(*apex, *verity_data, hashtree_file); in TEST() 122 ApexVerityData verity_data; in TEST() local 123 auto result = PrepareHashTree(*apex, verity_data, hash_tree); in TEST()
|
D | apex_file.cpp | 354 ApexVerityData verity_data; in VerifyApexVerity() local 383 verity_data.desc = std::move(*verified_descriptor); in VerifyApexVerity() 388 verity_data.hash_algorithm = in VerifyApexVerity() 390 verity_data.salt = GetSalt(*verity_data.desc, trailing_data); in VerifyApexVerity() 391 verity_data.root_digest = GetDigest(*verity_data.desc, trailing_data); in VerifyApexVerity() 393 return verity_data; in VerifyApexVerity()
|
D | apexd_verity.h | 37 const ApexFile& apex, const ApexVerityData& verity_data,
|
D | apexd.cpp | 194 std::unique_ptr<DmTable> CreateVerityTable(const ApexVerityData& verity_data, in CreateVerityTable() argument 198 AvbHashtreeDescriptor* desc = verity_data.desc.get(); in CreateVerityTable() 210 verity_data.hash_algorithm, verity_data.root_digest, verity_data.salt); in CreateVerityTable() 505 auto verity_data = apex.VerifyApexVerity(*public_key); in MountPackageImpl() local 506 if (!verity_data.ok()) { in MountPackageImpl() 508 << ": " << verity_data.error(); in MountPackageImpl() 513 root_digest.value() != verity_data->root_digest) { in MountPackageImpl() 515 << ": root digest (" << verity_data->root_digest in MountPackageImpl() 541 if (verity_data->desc->tree_size == 0) { in MountPackageImpl() 542 if (auto st = PrepareHashTree(apex, *verity_data, hashtree_file); in MountPackageImpl() [all …]
|
/system/update_engine/payload_consumer/ |
D | cow_writer_file_descriptor_unittest.cc | 74 std::vector<unsigned char> verity_data; in TEST_F() local 75 verity_data.resize(BLOCK_SIZE); in TEST_F() 76 std::fill(verity_data.begin(), verity_data.end(), 0xAA); in TEST_F() 88 cow_writer->AddRawBlocks(4, verity_data.data(), verity_data.size())); in TEST_F() 101 ASSERT_EQ(verity_data, read_back); in TEST_F() 114 ASSERT_EQ(verity_data, read_back) in TEST_F()
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 174 fec_verity_metadata verity_data; in LoadVerityConfig() local 175 if (fh.get_verity_metadata(verity_data)) { in LoadVerityConfig() 176 auto verity_table = base::SplitString(verity_data.table, in LoadVerityConfig()
|