Home
last modified time | relevance | path

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

/system/core/fs_mgr/libfs_avb/
Davb_util.h84 bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, const std::string& expected_key_blob);
86 bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate,
Davb_util.cpp368 bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, in ValidatePublicKeyBlob() function
382 bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate, in ValidatePublicKeyBlob() function
420 if (!ValidatePublicKeyBlob(pk_data, pk_len, expected_public_key_blob)) { in VerifyVBMetaSignature()
Dfs_avb.cpp351 if (ValidatePublicKeyBlob(public_key_data, allowed_avb_keys)) { in LoadAndVerifyVbmeta()
/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp38 using android::fs_mgr::ValidatePublicKeyBlob;
422 TEST_F(AvbUtilTest, ValidatePublicKeyBlob) { in TEST_F() argument
432 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F()
435 EXPECT_FALSE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F()
437 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F()
449 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F()
471 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_2048, allowed_key_paths)); in TEST_F()
472 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_4096, allowed_key_paths)); in TEST_F()
474 EXPECT_FALSE(ValidatePublicKeyBlob(expected_key_blob_8192, allowed_key_paths)); in TEST_F()
475 EXPECT_FALSE(ValidatePublicKeyBlob("invalid_content", allowed_key_paths)); in TEST_F()
[all …]