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:
committed by
Robert Shih
parent
c89ca732f0
commit
e0d30c5fc0
@@ -72,7 +72,9 @@ class OEMCryptoLoadsCertificateAlternates : public OEMCryptoLoadsCertificate {
|
||||
}
|
||||
|
||||
// If force is true, we assert that the key loads successfully.
|
||||
void LoadWithAllowedSchemes(uint32_t schemes, bool force) {
|
||||
void LoadCastCertificateKey(bool force) {
|
||||
// Padding scheme used to sign cast data.
|
||||
constexpr uint32_t schemes = kSign_PKCS1_Block1;
|
||||
// prov 2 or prov 3
|
||||
if (global_features.provisioning_method == OEMCrypto_Keybox ||
|
||||
global_features.provisioning_method == OEMCrypto_OEMCertificate) {
|
||||
|
||||
Reference in New Issue
Block a user