Skip to content

Commit 9900afe

Browse files
committed
Revert some stuff because I need to start from something that works
1 parent 4b7f9a2 commit 9900afe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wolfcrypt/src/evp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,7 +3328,7 @@ int wolfSSL_EVP_PKEY_sign(WOLFSSL_EVP_PKEY_CTX *ctx, unsigned char *sig,
33283328
return WOLFSSL_SUCCESS;
33293329
}
33303330

3331-
#if defined(WC_RSA_PSS) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
3331+
#if defined(OPENSSL_ALL) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
33323332
/* Handle PSS padding using RSA_padding_add_PKCS1_PSS_mgf1 if saltlen
33333333
* or mgf1 hash were set. Use generic signing otherwise. */
33343334
if (ctx->mgf1_md || ctx->saltlen) {
@@ -3514,7 +3514,7 @@ int wolfSSL_EVP_PKEY_verify(WOLFSSL_EVP_PKEY_CTX *ctx, const unsigned char *sig,
35143514
switch (ctx->pkey->type) {
35153515
#ifndef NO_RSA
35163516
case WC_EVP_PKEY_RSA:
3517-
#if defined(WC_RSA_PSS) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
3517+
#if defined(OPENSSL_ALL) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
35183518
/* Verify PSS padding using wolfSSL_RSA_verify_PKCS1_PSS_mgf1 if saltlen
35193519
* or mgf1 hash were set. Do generic verification otherwise. */
35203520
if (ctx->mgf1_md || ctx->saltlen) {

wolfssl/openssl/evp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ struct WOLFSSL_EVP_PKEY_CTX {
750750
#ifdef HAVE_ECC
751751
int curveNID;
752752
#endif
753-
#ifdef WC_RSA_PSS
753+
#ifndef NO_RSA
754754
const WOLFSSL_EVP_MD* md;
755755
const WOLFSSL_EVP_MD* mgf1_md;
756756
int saltlen;

0 commit comments

Comments
 (0)