Searched refs:ValidatePublicKeyBlob (Results 1 – 4 of 4) sorted by relevance
/system/core/fs_mgr/libfs_avb/ |
D | avb_util.h | 78 bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, const std::string& expected_key_blob); 80 bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate,
|
D | avb_util.cpp | 300 bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, in ValidatePublicKeyBlob() function 314 bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate, in ValidatePublicKeyBlob() function 352 if (!ValidatePublicKeyBlob(pk_data, pk_len, expected_public_key_blob)) { in VerifyVBMetaSignature()
|
D | fs_avb.cpp | 328 return ValidatePublicKeyBlob(public_key_data, allowed_avb_keys); in IsPublicKeyMatching()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | avb_util_test.cpp | 39 using android::fs_mgr::ValidatePublicKeyBlob; 423 TEST_F(AvbUtilTest, ValidatePublicKeyBlob) { in TEST_F() argument 433 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 436 EXPECT_FALSE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 438 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 450 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 472 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_2048, allowed_key_paths)); in TEST_F() 473 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_4096, allowed_key_paths)); in TEST_F() 475 EXPECT_FALSE(ValidatePublicKeyBlob(expected_key_blob_8192, allowed_key_paths)); in TEST_F() 476 EXPECT_FALSE(ValidatePublicKeyBlob("invalid_content", allowed_key_paths)); in TEST_F() [all …]
|