From 293ccdd60478fec4564a137020f4f3eb7f1835cd Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Tue, 17 Mar 2026 10:54:31 -0700 Subject: [PATCH] Fix typo --- wolfcrypt/src/rsa.c | 2 +- wolfssl/wolfcrypt/port/atmel/atmel.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 062e050b2d..36aaa7e8e8 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -3840,10 +3840,10 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out, else if (rsa_type == RSA_PUBLIC_DECRYPT && pad_value == RSA_BLOCK_TYPE_1) { if (key->uKeyH != 0) { + int tmp; if (pad_type != WC_RSA_PSS_PAD) { return WC_HW_E; } - int tmp; return wc_Microchip_rsa_verify(in, inLen, out, outLen, key, &tmp); } diff --git a/wolfssl/wolfcrypt/port/atmel/atmel.h b/wolfssl/wolfcrypt/port/atmel/atmel.h index 54f0445db8..2cfe9e811b 100644 --- a/wolfssl/wolfcrypt/port/atmel/atmel.h +++ b/wolfssl/wolfcrypt/port/atmel/atmel.h @@ -185,11 +185,11 @@ WOLFSSL_LOCAL int wc_Microchip_rsa_decrypt(const byte* in, word32 inLen, #ifndef WOLFSSL_SP_NO_2048 #define WOLFSSL_TA_KEY_TYPE_RSA TA_KEY_TYPE_RSA2048 #define WOLFSSL_TA_KEY_TYPE_RSA_SIZE TA_KEY_TYPE_RSA2048_SIZE -#elif WOLFSSL_SP_NO_3072 +#elif !defined(WOLFSSL_SP_NO_3072) #define WOLFSSL_TA_KEY_TYPE_RSA TA_KEY_TYPE_RSA3072 #define WOLFSSL_TA_KEY_TYPE_RSA_SIZE TA_KEY_TYPE_RSA3072_SIZE #else - #error Microchip requires enabling 2048 or 3072 RSA.*/ + #error Microchip requires enabling 2048 or 3072 RSA. #endif #endif /* NO_RSA */