• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class CmsWriter

Writes CMS structures to DER-encoded bytes (RFC 5652). Serializes SignedData and EnvelopedData. SET OF elements are sorted per DER requirements.

Inheritance
object
CmsWriter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public static class CmsWriter

Methods

View Source

WriteContentInfo(string, byte[]?)

Wraps content in a ContentInfo envelope and serializes to DER-encoded bytes.

Declaration
public static byte[] WriteContentInfo(string contentType, byte[]? content)
Parameters
Type Name Description
string contentType

The content type used by the operation.

byte[] content

Specifies the content value.

Returns
Type Description
byte[]
View Source

WriteEnvelopedData(EnvelopedData)

Serializes an EnvelopedData structure to DER-encoded bytes.

Declaration
public static byte[] WriteEnvelopedData(EnvelopedData data)
Parameters
Type Name Description
EnvelopedData data

The data to process.

Returns
Type Description
byte[]
View Source

WriteSignedData(SignedData)

Serializes a SignedData structure to DER-encoded bytes.

Declaration
public static byte[] WriteSignedData(SignedData data)
Parameters
Type Name Description
SignedData data

The data to process.

Returns
Type Description
byte[]
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX