Feeds content bytes into the encoder.
- macOS 10.5+
The CMSEncoder reference returned by the
The content that you want to add to the message. The content must conform to the type set with the
CMSEncoderfunction (or type
Set Encapsulated Content Type(_: _:)
id-dataif that function has not been called).
The length of the content being added, in bytes.
A result code. See Security Framework Result Codes.
You use this function to add the content that is to be signed or encrypted. If the message is only a container for certificates added with the
CMSEncoder function and has no other content, do not call this function. This function can be called multiple times.
After you are finished adding content, call the
CMSEncoder function to complete the message creation process.
None of the setter functions (
CMSEncoder) can be called after this function has been called.