Loading crypto/rsa/rsa_ameth.c +6 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_PKCS7_ENCRYPT: if (pkey_is_pss(pkey)) return -2; if (arg1 == 0) PKCS7_RECIP_INFO_get0_alg(arg2, &alg); break; Loading @@ -425,6 +427,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_CMS_ENVELOPE: if (pkey_is_pss(pkey)) return -2; if (arg1 == 0) return rsa_cms_encrypt(arg2); else if (arg1 == 1) Loading @@ -432,6 +436,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_CMS_RI_TYPE: if (pkey_is_pss(pkey)) return -2; *(int *)arg2 = CMS_RECIPINFO_TRANS; return 1; #endif Loading Loading
crypto/rsa/rsa_ameth.c +6 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_PKCS7_ENCRYPT: if (pkey_is_pss(pkey)) return -2; if (arg1 == 0) PKCS7_RECIP_INFO_get0_alg(arg2, &alg); break; Loading @@ -425,6 +427,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_CMS_ENVELOPE: if (pkey_is_pss(pkey)) return -2; if (arg1 == 0) return rsa_cms_encrypt(arg2); else if (arg1 == 1) Loading @@ -432,6 +436,8 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) break; case ASN1_PKEY_CTRL_CMS_RI_TYPE: if (pkey_is_pss(pkey)) return -2; *(int *)arg2 = CMS_RECIPINFO_TRANS; return 1; #endif Loading