test/evp_extra_test.c: Modify to reflect provider support in test_EVP_PKEY_check
authorRichard Levitte <levitte@openssl.org>
Fri, 6 Nov 2020 09:37:43 +0000 (10:37 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 7 Nov 2020 11:31:24 +0000 (12:31 +0100)
With our providers, RSA now supports public key check and key parameter check.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13334)

test/evp_extra_test.c

index 8ee41ab5ce8d0c1a2f2af61f011040ec52d2119a..e0f6af1f06129ce17547ed722b07b12f42d310d8 100644 (file)
@@ -399,9 +399,9 @@ static APK_DATA keydata[] = {
 };
 
 static APK_DATA keycheckdata[] = {
-    {kExampleRSAKeyDER, sizeof(kExampleRSAKeyDER), EVP_PKEY_RSA, 1, -2, -2, 0},
+    {kExampleRSAKeyDER, sizeof(kExampleRSAKeyDER), EVP_PKEY_RSA, 1, 1, 1, 0},
     {kExampleBadRSAKeyDER, sizeof(kExampleBadRSAKeyDER), EVP_PKEY_RSA,
-     0, -2, -2, 0},
+     0, 1, 1, 0},
 #ifndef OPENSSL_NO_EC
     {kExampleECKeyDER, sizeof(kExampleECKeyDER), EVP_PKEY_EC, 1, 1, 1, 0},
     /* group is also associated in our pub key */