Home
last modified time | relevance | path

Searched refs:allowed_key_paths (Results 1 – 2 of 2) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp456 std::vector<std::string> allowed_key_paths; in TEST_F() local
457 allowed_key_paths.push_back(rsa2048_public_key.value()); in TEST_F()
458 allowed_key_paths.push_back(rsa4096_public_key.value()); in TEST_F()
467 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_2048, allowed_key_paths)); in TEST_F()
468 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_4096, allowed_key_paths)); in TEST_F()
470 EXPECT_FALSE(ValidatePublicKeyBlob(expected_key_blob_8192, allowed_key_paths)); in TEST_F()
471 EXPECT_FALSE(ValidatePublicKeyBlob("invalid_content", allowed_key_paths)); in TEST_F()
472 EXPECT_FALSE(ValidatePublicKeyBlob("", allowed_key_paths)); in TEST_F()
474 allowed_key_paths.push_back(rsa8192_public_key.value()); in TEST_F()
475 EXPECT_TRUE(ValidatePublicKeyBlob(expected_key_blob_8192, allowed_key_paths)); in TEST_F()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp381 const std::vector<std::string>& allowed_key_paths) { in ValidatePublicKeyBlob() argument
387 for (const auto& path : allowed_key_paths) { in ValidatePublicKeyBlob()