This commit is contained in:
Tesfa Mael
2026-03-17 10:54:31 -07:00
committed by Daniele Lacamera
parent 969a2502ae
commit 293ccdd604
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
}
+2 -2
View File
@@ -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 */