The EnvelopedCms.Encrypt(CmsRecipientCollection) method encrypts the contents of the CMS/PKCS #7 message by using the information for the specified list of recipients. The message is encrypted by using a message encryption key with a symmetric encryption algorithm such as triple DES. The message encryption key is then encrypted with the public key of each recipient.
- recipients
A System.Security.Cryptography.Pkcs.CmsRecipientCollection collection that represents the information for the list of recipients.
The EnvelopedCms.Encrypt(CmsRecipientCollection) method does not cause the EnvelopedCms.RecipientInfos property to be populated.