Skip to content

Commit 18eb397

Browse files
committed
Fix typo
1 parent 1ad2b5f commit 18eb397

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/src/rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3617,10 +3617,10 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
36173617
else if (rsa_type == RSA_PUBLIC_DECRYPT &&
36183618
pad_value == RSA_BLOCK_TYPE_1) {
36193619
if (key->uKeyH != 0) {
3620+
int tmp;
36203621
if (pad_type != WC_RSA_PSS_PAD) {
36213622
return WC_HW_E;
36223623
}
3623-
int tmp;
36243624
return wc_Microchip_rsa_verify(in, inLen,
36253625
out, outLen, key, &tmp);
36263626
}

wolfssl/wolfcrypt/port/atmel/atmel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ WOLFSSL_LOCAL int wc_Microchip_rsa_decrypt(const byte* in, word32 inLen,
185185
#ifndef WOLFSSL_SP_NO_2048
186186
#define WOLFSSL_TA_KEY_TYPE_RSA TA_KEY_TYPE_RSA2048
187187
#define WOLFSSL_TA_KEY_TYPE_RSA_SIZE TA_KEY_TYPE_RSA2048_SIZE
188-
#elif WOLFSSL_SP_NO_3072
188+
#elif !defined(WOLFSSL_SP_NO_3072)
189189
#define WOLFSSL_TA_KEY_TYPE_RSA TA_KEY_TYPE_RSA3072
190190
#define WOLFSSL_TA_KEY_TYPE_RSA_SIZE TA_KEY_TYPE_RSA3072_SIZE
191191
#else
192-
#error Microchip requires enabling 2048 or 3072 RSA.*/
192+
#error Microchip requires enabling 2048 or 3072 RSA.
193193
#endif
194194

195195
#endif /* NO_RSA */

0 commit comments

Comments
 (0)