mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user