Merge pull request #9013 from ColtonWilley/fix_cryptocb_rsa_pad_inline

Set out ptr properly for RSA pad crypto cb inline
This commit is contained in:
Sean Parkinson
2025-07-22 16:47:06 +10:00
committed by GitHub

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;
}