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

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.

Syntax

public void Decrypt ()

Remarks

EnvelopedCms.Decode(Byte[]) should be called before EnvelopedCms.Decrypt or any other erload:System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt method.

The EnvelopedCms.Decrypt method does not search the computer My store if it is inaccessible.

.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