Merge "Add Unit Tests for Big RSA Keys"
This commit is contained in:
committed by
Android (Google) Code Review
commit
afb006f960
@@ -1402,6 +1402,15 @@ extern "C" bool OEMCrypto_IsAntiRollbackHwPresent() {
|
||||
extern "C" uint32_t OEMCrypto_SupportedCertificates() {
|
||||
return OEMCrypto_Supports_RSA_2048bit | OEMCrypto_Supports_RSA_3072bit |
|
||||
OEMCrypto_Supports_RSA_CAST;
|
||||
if (!crypto_engine) {
|
||||
LOGE("OEMCrypto_GetProvisioningMethod: OEMCrypto Not Initialized.");
|
||||
return 0;
|
||||
}
|
||||
if (crypto_engine->config_provisioning_method() == OEMCrypto_DrmCertificate) {
|
||||
return 0;
|
||||
}
|
||||
return OEMCrypto_Supports_RSA_2048bit | OEMCrypto_Supports_RSA_3072bit |
|
||||
OEMCrypto_Supports_RSA_CAST;
|
||||
}
|
||||
|
||||
extern "C" OEMCryptoResult OEMCrypto_Generic_Encrypt(
|
||||
|
||||
Reference in New Issue
Block a user