mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix outlen return for RSA private decrypt with WOLF_CRYPTO_CB_RSA_PAD defined
This commit is contained in:
@ -3603,6 +3603,9 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
|
||||
ret = wc_CryptoCb_RsaPad(in, inLen, out,
|
||||
&outLen, rsa_type, key, rng, &padding);
|
||||
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) {
|
||||
if (ret == 0) {
|
||||
ret = (int)outLen;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user