From 2899924d427a27bc7f80eeba70b506ba98473d3c Mon Sep 17 00:00:00 2001 From: Fred Gylys-Colwell Date: Mon, 2 May 2022 17:36:36 -0700 Subject: [PATCH] Update TestMaxDRMKeys to use 2048 bit keys only Merge from Widevine repo of http://go/wvgerrit/151254 Test: Ran tests on reference oemcrypto Bug: 228996670 Change-Id: I6ea69bad49fa2d4272fc8bb02895c17f314c7f49 --- libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp index 0141bb64..7886e775 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp @@ -5929,9 +5929,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_);