Home
last modified time | relevance | path

Searched refs:root_digest (Results 1 – 22 of 22) sorted by relevance

/system/apex/apexd/
Dapexd_verity.cpp106 auto golden_digest = HexToBin(verity_data.root_digest); in GenerateHashTree()
146 std::vector<unsigned char> root_digest; in CalculateRootDigest() local
147 if (!builder->CalculateRootDigest(root_verity, &root_digest)) { in CalculateRootDigest()
150 auto result = HashTreeBuilder::BytesArrayToString(root_digest); in CalculateRootDigest()
151 result.resize(verity_data.root_digest.size()); in CalculateRootDigest()
177 if (*digest != verity_data.root_digest) { in PrepareHashTree()
181 << verity_data.root_digest; in PrepareHashTree()
Dapex_file_test.cpp132 std::string root_digest; in TEST_P() local
133 ASSERT_TRUE(android::base::ReadFileToString(digest_path, &root_digest)) in TEST_P()
135 root_digest = android::base::Trim(root_digest); in TEST_P()
137 EXPECT_EQ(std::string(root_digest), data.root_digest); in TEST_P()
354 ASSERT_EQ(digest->root_digest, in TEST()
Dapex_file_repository.cpp275 if (auto root_digest = apex_config.root_digest(); root_digest != "") { in AddBlockApex() local
277 BytesToHex(reinterpret_cast<const uint8_t*>(root_digest.data()), in AddBlockApex()
278 root_digest.size()); in AddBlockApex()
Dapex_file.h37 std::string root_digest; member
Dapex_file_repository_test.cpp600 const std::string& root_digest = "", in apex()
606 apex->set_root_digest(root_digest); in apex()
729 const std::string root_digest = "root_digest"; in TEST_F() local
731 reinterpret_cast<const uint8_t*>(root_digest.data()), root_digest.size()); in TEST_F()
735 .apex(test_apex_foo, /*public_key=*/"", root_digest); in TEST_F()
Dapexd.cpp210 verity_data.hash_algorithm, verity_data.root_digest, verity_data.salt); in CreateVerityTable()
511 auto root_digest = instance.GetBlockApexRootDigest(apex.GetPath()); in MountPackageImpl() local
512 if (root_digest.has_value() && in MountPackageImpl()
513 root_digest.value() != verity_data->root_digest) { in MountPackageImpl()
515 << ": root digest (" << verity_data->root_digest in MountPackageImpl()
516 << ") mismatches with the one (" << root_digest.value() in MountPackageImpl()
3008 apex_verity->root_digest) { in ValidateDecompressedApex()
Dapex_file.cpp391 verity_data.root_digest = GetDigest(*verity_data.desc, trailing_data); in VerifyApexVerity()
Dapexd_test.cpp184 return digest->root_digest; in GetRootDigest()
217 const std::string& root_digest = "", in AddBlockApex() argument
221 AddToMetadata(apex_name, public_key, root_digest, is_factory); in AddBlockApex()
276 const std::string& root_digest, bool is_factory) { in AddToMetadata() argument
287 apex->set_root_digest(root_digest); in AddToMetadata()
/system/apex/tools/
Dapex_compression_tool.py138 root_digest = RunCommand(avbtool_cmd, verbose=verbose)[0].decode().split(': ')[1].strip()
145 capex_metadata.originalApexDigest = root_digest
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_util_test.cpp98 EXPECT_EQ(hashtree_desc->root_digest, "a3d5dd307341393d85de356c384ff543ec1ed81b"); in TEST_F()
/system/extras/verity/include/verity/
Dhash_tree_builder.h75 std::vector<unsigned char>* root_digest);
/system/core/fs_mgr/include/
Dfs_mgr.h73 std::string root_digest; member
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dtypes.h67 std::string root_digest; member
/system/core/fs_mgr/libdm/
Ddm_target.cpp68 const std::string& hash_algorithm, const std::string& root_digest, in DmTargetVerity() argument
80 root_digest, in DmTargetVerity()
/system/extras/verity/
Dhash_tree_builder.cpp222 std::vector<unsigned char>* root_digest) { in CalculateRootDigest() argument
226 return HashBlocks(root_verity.data(), block_size_, root_digest); in CalculateRootDigest()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp70 hashtree_desc.root_digest, hashtree_desc.salt); in ConstructVerityTable()
173 hashtree_desc->root_digest = BytesToHex(desc_digest, hashtree_desc->root_digest_len); in GetHashtreeDescriptor()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h125 const std::string& root_digest, const std::string& salt);
/system/sepolicy/prebuilts/api/33.0/private/
Dproperty_contexts1306 partition.system.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1307 partition.system_ext.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1308 partition.product.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1309 partition.vendor.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1310 partition.odm.verified.root_digest u:object_r:verity_status_prop:s0 exact string
/system/core/init/
Dbuiltins.cpp881 hashtree_info->root_digest); in do_verity_update_state()
/system/sepolicy/private/
Dproperty_contexts1453 partition.system.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1454 partition.system_ext.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1455 partition.product.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1456 partition.vendor.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1457 partition.odm.verified.root_digest u:object_r:verity_status_prop:s0 exact string
/system/sepolicy/prebuilts/api/34.0/private/
Dproperty_contexts1453 partition.system.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1454 partition.system_ext.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1455 partition.product.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1456 partition.vendor.verified.root_digest u:object_r:verity_status_prop:s0 exact string
1457 partition.odm.verified.root_digest u:object_r:verity_status_prop:s0 exact string
/system/core/fs_mgr/
Dfs_mgr.cpp2226 .root_digest = android::base::Trim(tokens[8]), in fs_mgr_get_hashtree_info()