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.
Inherited Members
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeDecryptor
Constructors
View SourceSMimeDecryptor()
Initializes a new instance of the SMimeDecryptor class.
Declaration
public SMimeDecryptor()
Methods
View SourceDecrypt(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 |