Rename LoadWithAllowedSchemes to LoadCastCertificateKey

The unit test helper function LoadWithAllowedSchemes should
only be used to load a Cast Certificate. So it has been
renamed to make that clear.

The only unit test that used the old function with the
non-cast padding scheme has been removed. A replacement will
be added in the next CL of the chain.

Change-Id: Id4aa2f420435baff664324ee4b3dcb74ab9ffe8a
This commit is contained in:
Fred Gylys-Colwell
2023-08-21 21:40:58 -07:00
committed by Robert Shih
parent c89ca732f0
commit e0d30c5fc0
3 changed files with 26 additions and 38 deletions

View File

@@ -796,7 +796,7 @@ TEST_F(OEMCryptoLoadsCertificateAlternates,
GTEST_SKIP() << "Test for non Prov 4.0 devices only.";
}
OEMCryptoResult sts;
LoadWithAllowedSchemes(kSign_PKCS1_Block1, false);
LoadCastCertificateKey(false);
// If the device is a cast receiver, then this scheme is required.
if (global_features.cast_receiver) {
ASSERT_TRUE(key_loaded_);
@@ -835,7 +835,7 @@ TEST_F(OEMCryptoLoadsCertificateAlternates,
global_features.provisioning_method == OEMCrypto_BootCertificateChain) {
GTEST_SKIP() << "Test for non Prov 4.0 devices only.";
}
LoadWithAllowedSchemes(kSign_PKCS1_Block1, false);
LoadCastCertificateKey(false);
// If the device is a cast receiver, then this scheme is required.
if (global_features.cast_receiver) {
ASSERT_TRUE(key_loaded_);