Skip to content

Commit a7ae3f2

Browse files
committed
Fix typo
1 parent d5f2743 commit a7ae3f2

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
@@ -3581,10 +3581,10 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
35813581
else if (rsa_type == RSA_PUBLIC_DECRYPT &&
35823582
pad_value == RSA_BLOCK_TYPE_1) {
35833583
if (key->uKeyH != 0) {
3584+
int tmp;
35843585
if (pad_type != WC_RSA_PSS_PAD) {
35853586
return WC_HW_E;
35863587
}
3587-
int tmp;
35883588
return wc_Microchip_rsa_verify(in, inLen,
35893589
out, outLen, key, &tmp);
35903590
}

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)