System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt Method

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.

Syntax

public void Decrypt (System.Security.Cryptography.X509Certificates.X509Certificate2Collection extraStore)

Parameters

extraStore
An System.Security.Cryptography.X509Certificates.X509Certificate2Collection collection that represents additional certificates to use for the decryption. The EnvelopedCms.Decrypt(System.Security.Cryptography.X509Certificates.X509Certificate2Collection) method searches this certificate collection and the My certificate store for the proper certificate to use for the decryption.

Remarks

.NET Framework Security

The following permissions are required to access the decryption key:

Requirements

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0