Home
last modified time | relevance | path

Searched refs:hash_algorithm (Results 1 – 19 of 19) sorted by relevance

/system/extras/verity/
Dbuild_verity_tree_main.cpp54 std::string hash_algorithm; in main() local
102 hash_algorithm = optarg; in main()
116 auto hash_function = hash_algorithm.empty() in main()
118 : HashTreeBuilder::HashFunction(hash_algorithm); in main()
/system/extras/libfec/
Davb_utils.cpp135 std::string hash_algorithm = in parse_avb_image() local
136 reinterpret_cast<char *>(hashtree_descriptor.hash_algorithm); in parse_avb_image()
138 if (android::base::EqualsIgnoreCase(hash_algorithm, "sha1")) { in parse_avb_image()
140 } else if (android::base::EqualsIgnoreCase(hash_algorithm, "sha256")) { in parse_avb_image()
143 error("unsupported hash algorithm %s", hash_algorithm.c_str()); in parse_avb_image()
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb.h33 HashAlgorithm hash_algorithm; member
39 : digest(std::move(digest_value)), hash_algorithm(algorithm), total_size(size) {} in VBMetaInfo()
100 const HashAlgorithm& hash_algorithm, bool allow_verification_error,
/system/apex/apexd/
Dapexd_verity.cpp74 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in GenerateHashTree()
77 << verity_data.hash_algorithm; in GenerateHashTree()
137 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in CalculateRootDigest()
140 << verity_data.hash_algorithm; in CalculateRootDigest()
Dapex_file.h35 std::string hash_algorithm; member
Dapex_file.cpp388 verity_data.hash_algorithm = in VerifyApexVerity()
389 reinterpret_cast<const char*>((*descriptor)->hash_algorithm); in VerifyApexVerity()
Dapexd.cpp210 verity_data.hash_algorithm, verity_data.root_digest, verity_data.salt); in CreateVerityTable()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test.cpp118 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
131 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
202 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
236 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
Dfs_avb_util_test.cpp94 std::string(reinterpret_cast<const char*>(hashtree_desc->hash_algorithm))); in TEST_F()
Dfs_avb_test_util.cpp51 const std::string& hash_algorithm) { in CalcVBMetaDigest() argument
61 image_path.value().c_str(), hash_algorithm.c_str(), in CalcVBMetaDigest()
Dfs_avb_test_util.h76 std::string CalcVBMetaDigest(const std::string& file_name, const std::string& hash_algorithm);
/system/security/fsverity/libfsverity_rs/
Dsys.rs48 pub hash_algorithm: u32, field
Dlib.rs53 hash_algorithm: FS_VERITY_HASH_ALG_SHA256, in enable()
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp188 const HashAlgorithm& hash_algorithm, bool allow_verification_error, in LoadAndVerifyVbmeta() argument
255 if (hash_algorithm == HashAlgorithm::kSHA256) { in LoadAndVerifyVbmeta()
258 } else if (hash_algorithm == HashAlgorithm::kSHA512) { in LoadAndVerifyVbmeta()
265 avb_handle->vbmeta_info_ = VBMetaInfo(digest, hash_algorithm, total_size); in LoadAndVerifyVbmeta()
Davb_util.cpp62 std::ostringstream hash_algorithm; in ConstructVerityTable() local
63 hash_algorithm << hashtree_desc.hash_algorithm; in ConstructVerityTable()
69 hashtree_desc.tree_offset / hashtree_desc.hash_block_size, hash_algorithm.str(), in ConstructVerityTable()
/system/core/fs_mgr/libdm/
Ddm_target.cpp68 const std::string& hash_algorithm, const std::string& root_digest, in DmTargetVerity() argument
79 hash_algorithm, in DmTargetVerity()
/system/security/ondevice-signing/
DVerityUtils.cpp74 .hash_algorithm = FS_VERITY_HASH_ALG_SHA256, in createDigest()
150 arg.hash_algorithm = FS_VERITY_HASH_ALG_SHA256; in enableFsVerity()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc49 reinterpret_cast<const char*>(hashtree.hash_algorithm); in AvbDescriptorCallback()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h124 uint32_t hash_start_block, const std::string& hash_algorithm,