System.Security.Cryptography.Pkcs.EnvelopedCms: Method Members

The methods of System.Security.Cryptography.Pkcs.EnvelopedCms are listed below. For a list of all members, see the EnvelopedCms Members list.

See Also: Inherited members from System.Object

Public Methods

Decode(byte[])

The EnvelopedCms.Decode(Byte[]) method decodes the specified enveloped CMS/PKCS #7 message and resets all member variables in the System.Security.Cryptography.Pkcs.EnvelopedCms object.

Decrypt()

The EnvelopedCms.Decrypt method decrypts the contents of the decoded enveloped CMS/PKCS #7 message. The EnvelopedCms.Decrypt method searches the current user and computer My stores for the appropriate certificate and private key.

Decrypt(RecipientInfo)

The EnvelopedCms.Decrypt(RecipientInfo) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information.

Decrypt(System.Security.Cryptography.X509Certificates.X509Certificate2Collection)

The EnvelopedCms.Decrypt(System.Security.Cryptography.X509Certificates.X509Certificate2Collection) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the specified certificate collection. The EnvelopedCms.Decrypt(System.Security.Cryptography.X509Certificates.X509Certificate2Collection) method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption.

Decrypt(RecipientInfo, System.Security.Cryptography.X509Certificates.X509Certificate2Collection)

The EnvelopedCms.Decrypt(RecipientInfo, System.Security.Cryptography.X509Certificates.X509Certificate2Collection) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information and by using the specified certificate collection. The EnvelopedCms.Decrypt(RecipientInfo, System.Security.Cryptography.X509Certificates.X509Certificate2Collection) method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption.

Encode() : byte[]

The EnvelopedCms.Encode method encodes the contents of the enveloped CMS/PKCS #7 message and returns it as an array of byte values. Encryption must be done before encoding.

Encrypt()

The EnvelopedCms.Encrypt method encrypts the contents of the CMS/PKCS #7 message.

Encrypt(CmsRecipient)

The EnvelopedCms.Encrypt(CmsRecipient) method encrypts the contents of the CMS/PKCS #7 message by using the specified recipient information.

Encrypt(CmsRecipientCollection)

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.