Class CmsReader
Reads CMS structures from DER-encoded bytes (RFC 5652). Parses ContentInfo, SignedData, and EnvelopedData.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public static class CmsReader
Methods
View SourceReadContentInfo(byte[])
Parses a ContentInfo envelope from DER-encoded bytes.
Declaration
public static ContentInfo ReadContentInfo(byte[] der)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | der | Specifies the der value. |
Returns
| Type | Description |
|---|---|
| ContentInfo |
ReadEnvelopedData(byte[])
Parses an EnvelopedData structure from DER-encoded bytes.
Declaration
public static EnvelopedData ReadEnvelopedData(byte[] der)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | der | Specifies the der value. |
Returns
| Type | Description |
|---|---|
| EnvelopedData |
ReadSignedData(byte[])
Parses a SignedData structure from DER-encoded bytes.
Declaration
public static SignedData ReadSignedData(byte[] der)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | der | Specifies the der value. |
Returns
| Type | Description |
|---|---|
| SignedData |