Skip to content

Commit 4b7f9a2

Browse files
committed
Changes suggested in review.
1 parent a9a29de commit 4b7f9a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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(OPENSSL_ALL) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
3331+
#if defined(WC_RSA_PSS) && (!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(OPENSSL_ALL) && (!defined(HAVE_FIPS) || FIPS_VERSION_GT(2,0))
3517+
#if defined(WC_RSA_PSS) && (!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-
#ifndef NO_RSA
753+
#ifdef WC_RSA_PSS
754754
const WOLFSSL_EVP_MD* md;
755755
const WOLFSSL_EVP_MD* mgf1_md;
756756
int saltlen;

wolfssl/openssl/hmac.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
extern "C" {
4343
#endif
4444

45-
#define HMAC_MAX_MD_CBLOCK 128
45+
#define HMAC_MAX_MD_CBLOCK WC_MAX_BLOCK_SIZE
4646

4747
WOLFSSL_API unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md,
4848
const void* key, int key_len,

0 commit comments

Comments
 (0)