Set out ptr properly for RSA pad crypto cb inline

This commit is contained in:
Colton Willey
2025-07-17 12:01:39 -07:00
parent fa1842e56d
commit f3ee192a96

View File

@@ -3601,6 +3601,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 (outPtr != NULL) {
*outPtr = out;
}
if (ret == 0) {
ret = (int)outLen;
}