From f3ee192a96b62e4f2247c72b64f3096f27c70cdd Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Thu, 17 Jul 2025 12:01:39 -0700 Subject: [PATCH] Set out ptr properly for RSA pad crypto cb inline --- wolfcrypt/src/rsa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 78c0c9ec4..a45339f34 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -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; }