function Decrypt(Certificate: TScCertificate): TBytes; overload;
procedure Decrypt(Certificate: TScCertificate; OutStream: TStream); overload;
The Decrypt method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the certificate with a private key specified in the Certificate parameter.
The method finds the recipient information corresponding to the specified certificate and decrypts the content information setting in the ContentInfo property.
The decrypted data can be returned as an array of byte values or can be written to the OutStream parameter.