Searched refs:expected_key_blob (Results 1 – 4 of 4) sorted by relevance
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb.cpp | 196 std::string expected_key_blob; in LoadAndVerifyVbmeta() local 201 } else if (!ReadFileToString(expected_public_key_path, &expected_key_blob)) { in LoadAndVerifyVbmeta() 214 partition_name, ab_suffix, ab_other_suffix, expected_key_blob, allow_verification_error, in LoadAndVerifyVbmeta()
|
D | avb_util.cpp | 367 const std::string& expected_key_blob) { in ValidatePublicKeyBlob() argument 368 if (expected_key_blob.empty()) { // no expectation of the key, return true. in ValidatePublicKeyBlob() 371 if (expected_key_blob.size() != length) { in ValidatePublicKeyBlob() 374 if (0 == memcmp(key, expected_key_blob.data(), length)) { in ValidatePublicKeyBlob()
|
D | avb_util.h | 84 bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, const std::string& expected_key_blob);
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | avb_util_test.cpp | 426 std::string expected_key_blob; in TEST_F() local 427 EXPECT_TRUE(base::ReadFileToString(key_path, &expected_key_blob)); in TEST_F() 428 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 431 EXPECT_FALSE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 433 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F() 444 std::string expected_key_blob = ""; // empty means no expectation, thus return true. in TEST_F() local 445 EXPECT_TRUE(ValidatePublicKeyBlob(key_data, key_size, expected_key_blob)); in TEST_F()
|