Class EncryptedContentInfo
A CMS EncryptedContentInfo (RFC 5652 §6.1). Contains the content type, the content-encryption algorithm, and the encrypted content.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class EncryptedContentInfo
Constructors
View SourceEncryptedContentInfo(string, AlgorithmIdentifier, byte[]?)
Initializes a new instance of the EncryptedContentInfo class.
Declaration
public EncryptedContentInfo(string contentType, AlgorithmIdentifier contentEncryptionAlgorithm, byte[]? encryptedContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contentType | |
| AlgorithmIdentifier | contentEncryptionAlgorithm | |
| byte[] | encryptedContent |
Properties
View SourceContentEncryptionAlgorithm
Gets the content-encryption algorithm (including IV as parameters).
Declaration
public AlgorithmIdentifier ContentEncryptionAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| AlgorithmIdentifier |
ContentType
Gets the content type OID (typically id-data).
Declaration
public string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
EncryptedContent
Gets the encrypted content bytes, or null if absent (external content).
Declaration
public byte[]? EncryptedContent { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |