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

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.

Syntax

public void Decrypt (RecipientInfo recipientInfo)

Parameters

recipientInfo
A System.Security.Cryptography.Pkcs.RecipientInfo object that represents the recipient information that identifies the certificate associated with the private key 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