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

Class SMimeDecryptor

Decrypts S/MIME encrypted messages (RFC 5751 §3.3). Handles application/pkcs7-mime; smime-type=enveloped-data messages using RSA key transport and AES-CBC content encryption.

Inheritance
object
SMimeDecryptor
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeDecryptor

Constructors

View Source

SMimeDecryptor()

Initializes a new instance of the SMimeDecryptor class.

Declaration
public SMimeDecryptor()

Methods

View Source

Decrypt(MimeMessage, RSA, X509CertificateInfo)

Decrypts an S/MIME encrypted message. The recipient certificate must correspond to the supplied RSA private key and must match a RecipientInfo in the EnvelopedData.

Declaration
public MimeMessage Decrypt(MimeMessage message, RSA recipientPrivateKey, X509CertificateInfo recipientCert)
Parameters
Type Name Description
MimeMessage message

The message to process.

RSA recipientPrivateKey

The recipient private key used by the operation.

X509CertificateInfo recipientCert

The recipient cert used by the operation.

Returns
Type Description
MimeMessage
  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX