PKCS7_DecodeEnvelopedData, RsaPrivateDecryptInline can return 0 upon error
This commit is contained in:
parent
38c2373c4f
commit
9f8dcccc61
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user