mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Set out ptr properly for RSA pad crypto cb inline
This commit is contained in:
@@ -3601,6 +3601,9 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
|
|||||||
ret = wc_CryptoCb_RsaPad(in, inLen, out,
|
ret = wc_CryptoCb_RsaPad(in, inLen, out,
|
||||||
&outLen, rsa_type, key, rng, &padding);
|
&outLen, rsa_type, key, rng, &padding);
|
||||||
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) {
|
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) {
|
||||||
|
if (outPtr != NULL) {
|
||||||
|
*outPtr = out;
|
||||||
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
ret = (int)outLen;
|
ret = (int)outLen;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user