CMS RSA-OAEP and RSA-PSS support.
[openssl.git] / crypto / rsa / rsa_pmeth.c
index ed1eb4922cfee095089affdc04acfeecfed5f114..96d1d05735b3d7c0116319adf5699f7d91461723 100644 (file)
@@ -597,16 +597,6 @@ static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
                return 1;
 #ifndef OPENSSL_NO_CMS
                case EVP_PKEY_CTRL_CMS_DECRYPT:
-               {
-               X509_ALGOR *alg = NULL;
-               ASN1_OBJECT *encalg = NULL;
-               if (p2)
-                       CMS_RecipientInfo_ktri_get0_algs(p2, NULL, NULL, &alg);
-               if (alg)
-                       X509_ALGOR_get0(&encalg, NULL, NULL, alg);
-               if (encalg && OBJ_obj2nid(encalg) == NID_rsaesOaep)
-                       rctx->pad_mode = RSA_PKCS1_OAEP_PADDING;
-               }
                case EVP_PKEY_CTRL_CMS_ENCRYPT:
                case EVP_PKEY_CTRL_CMS_SIGN:
                return 1;