Home
last modified time | relevance | path

Searched refs:HashAlgorithm (Results 1 – 4 of 4) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test.cpp31 using android::fs_mgr::HashAlgorithm;
107 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
118 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
123 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
131 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
180 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
189 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
202 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F()
209 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
225 "" /* expected_public_key_blob*/, HashAlgorithm::kSHA256, in TEST_F()
[all …]
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb.h33 HashAlgorithm hash_algorithm;
38 VBMetaInfo(std::string digest_value, HashAlgorithm algorithm, size_t size) in VBMetaInfo()
93 const HashAlgorithm& hash_algorithm, bool allow_verification_error,
Dtypes.h42 enum class HashAlgorithm { enum
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp98 HashAlgorithm hash_alg_;
123 avb_verifier->hash_alg_ = HashAlgorithm::kSHA256; in Create()
126 avb_verifier->hash_alg_ = HashAlgorithm::kSHA512; in Create()
158 if (hash_alg_ == HashAlgorithm::kSHA256) { in VerifyVbmetaImages()
161 } else if (hash_alg_ == HashAlgorithm::kSHA512) { in VerifyVbmetaImages()
185 const HashAlgorithm& hash_algorithm, bool allow_verification_error, in LoadAndVerifyVbmeta()
252 if (hash_algorithm == HashAlgorithm::kSHA256) { in LoadAndVerifyVbmeta()
255 } else if (hash_algorithm == HashAlgorithm::kSHA512) { in LoadAndVerifyVbmeta()
334 HashAlgorithm::kSHA256, in LoadAndVerifyVbmeta()