Merge "Update TestMaxDRMKeys to use 2048 bit keys only" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-09 09:34:58 +00:00
committed by Android (Google) Code Review

View File

@@ -5951,9 +5951,9 @@ TEST_F(OEMCryptoLoadsCertificate, TestMaxDRMKeys) {
// Attempts to load one more key than the kMaxTotalDRMPrivateKeys
Session s;
encoded_rsa_key_.assign(kTestRSAPKCS8PrivateKeyInfo3_3072,
kTestRSAPKCS8PrivateKeyInfo3_3072 +
sizeof(kTestRSAPKCS8PrivateKeyInfo3_3072));
encoded_rsa_key_.assign(kTestRSAPKCS8PrivateKeyInfo2_2048,
kTestRSAPKCS8PrivateKeyInfo2_2048 +
sizeof(kTestRSAPKCS8PrivateKeyInfo2_2048));
Session ps;
ProvisioningRoundTrip provisioning_messages(&ps, encoded_rsa_key_);
provisioning_messages.PrepareSession(keybox_);