Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt
authorVladimirs Ambrosovs <rodriguez.twister@gmail.com>
Tue, 12 Mar 2024 16:23:55 +0000 (18:23 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 14 Mar 2024 07:49:01 +0000 (08:49 +0100)
Signed-off-by: Vladimirs Ambrosovs <rodriguez.twister@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23825)

engines/e_dasync.c

index 63b13d3d45035c0818593ddf9bd3f075d6a1f35c..4d92fef704288f6a2c4de7a0fd1cfebfa5d1eba4 100644 (file)
@@ -981,7 +981,7 @@ static int dasync_rsa_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
                              size_t inlen);
 
     if (pdecrypt == NULL)
-        EVP_PKEY_meth_get_encrypt(dasync_rsa_orig, NULL, &pdecrypt);
+        EVP_PKEY_meth_get_decrypt(dasync_rsa_orig, NULL, &pdecrypt);
     return pdecrypt(ctx, out, outlen, in, inlen);
 }