diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.cpp index fb62985c..83848145 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_cast_test.cpp @@ -80,7 +80,10 @@ TEST_F(OEMCryptoLoadsCertificateAlternates, ForbidPrepAndSign) { OEMCryptoResult result = OEMCrypto_PrepAndSignLicenseRequest( s.session_id(), message.data(), message.size(), &core_message_length, signature.data(), &signature_length); - ASSERT_EQ(OEMCrypto_ERROR_INVALID_KEY, result); + // TODO: remove OEMCrypto_ERROR_INVALID_RSA_KEY once OEMCrypto v16 is not + // supported anymore. This error code has been deprecated since v17. + ASSERT_TRUE(result == OEMCrypto_ERROR_INVALID_KEY || + result == OEMCrypto_ERROR_INVALID_RSA_KEY); const vector zero(signature.size(), 0); ASSERT_EQ(signature, zero); // Signature should not have been computed. }