mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 16:50:48 +02:00
Fix typo
This commit is contained in:
committed by
Daniele Lacamera
parent
969a2502ae
commit
293ccdd604
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user