class function EncodeData(const Data: TBytes; CMSEncoding: TScCMSEncoding): TBytes; overload;
class procedure EncodeData(InStream, OutStream: TStream; CMSEncoding: TScCMSEncoding); overload;
Description
The EncodeData method encodes a CMS/PKCS #7 message from the DER format to the PEM or S/MIME format.
The CMSEncoding parameter specifies the output encoded format.
The CMS/PKCS #7 message that will be encoded can be passed by the Data parameter as a byte array or by the InStream parameter as a TStream object.
The encoded data can be returned as an array of byte values or can be written to the OutStream parameter.
See Also