Returns a secure message created by calculating and attaching a MIC to the input message, and then optionally encrypting it.
- iOS 5.0–7.0Deprecated
- macOS 10.7–10.9Deprecated
- Mac Catalyst 13.0–13.0Deprecated
A pointer to the secondary status result that provides additional information in case of failure.
The context used to send the message.
A flag you set to zero to request that only that the message integrity check be applied, or to anything non-zero to request both integrity checking and confidentiality (encryption) of the message.
The quality of protection requested for the encryption. See Quality of Protection Settings for valid values.
A buffer containing the message to protect.
A pointer the function uses to indicate what protection is actually applied to the message. A value of zero indicates only integrity checking. A non-zero value indicates both integrity checking and confidentiality. Pass
NULLto ignore this output.
A buffer the function fills with the fully wrapped message, ready for transport to the peer. Release the buffer using a call to
gsswhen you are done with it.