Document BAD_FUNC_ARG return value for wc_PKCS7_DecodeEncryptedKeyPackage()

This commit is contained in:
Josh Holtrop
2025-07-10 08:07:32 -04:00
parent c83a452a3c
commit 3f65846e67

View File

@@ -675,6 +675,7 @@ int wc_PKCS7_DecodeEncryptedData(PKCS7* pkcs7, byte* pkiMsg,
\return On successfully extracting the information from the message, \return On successfully extracting the information from the message,
returns the bytes written to output returns the bytes written to output
\return BAD_FUNC_ARG Returned if one of the input parameters is invalid
\return ASN_PARSE_E Returned if there is an error parsing the given pkiMsg \return ASN_PARSE_E Returned if there is an error parsing the given pkiMsg
or if the wrapped content type is EncryptedData and support for or if the wrapped content type is EncryptedData and support for
EncryptedData is not compiled in (e.g. NO_PKCS7_ENCRYPTED_DATA is set) EncryptedData is not compiled in (e.g. NO_PKCS7_ENCRYPTED_DATA is set)