<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Cms.CmsEnvelopedData

public class CmsEnvelopedData
Represents a CMS EnvelopedData message. Parse an encoded message, obtain recipients from GetRecipientInfos, match one with RecipientID, then decrypt via RecipientInformation.
public ContentInfo ContentInfo { get; }

Gets the CMS ContentInfo wrapper for this message.

public string EncryptionAlgOid { get; }

Return the object identifier for the content-encryption algorithm.

Gets the content-encryption algorithm identifier.

public EnvelopedData EnvelopedData { get; }

Gets the underlying ASN.1 EnvelopedData structure.

Gets originator certificates and CRLs carried in the message, or null if absent.

public CmsEnvelopedData(byte[] envelopedData)

Creates an instance from an encoded EnvelopedData message.

public CmsEnvelopedData(Stream envelopedData)

Creates an instance from an encoded EnvelopedData message.

public CmsEnvelopedData(ContentInfo contentInfo)

Creates an instance from a parsed CMS ContentInfo structure.

public byte[] GetEncoded()

Returns the DER encoding of this message.

Returns a store of the intended recipients for this message.

Returns a table of unprotected attributes indexed by attribute OID, or null if absent.