mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
PKCS7_DecodeEnvelopedData, RsaPrivateDecryptInline can return 0 upon error
This commit is contained in:
@@ -1183,7 +1183,7 @@ CYASSL_API int PKCS7_DecodeEnvelopedData(PKCS7* pkcs7, byte* pkiMsg,
|
||||
/* decrypt encryptedKey */
|
||||
keySz = RsaPrivateDecryptInline(encryptedKey, encryptedKeySz,
|
||||
&decryptedKey, &privKey);
|
||||
if (keySz < 0)
|
||||
if (keySz <= 0)
|
||||
return keySz;
|
||||
|
||||
/* decrypt encryptedContent */
|
||||
|
Reference in New Issue
Block a user