Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CmsEnvelopedDataService

OfficeIMO.Security

Namespace
OfficeIMO.Security
Assembly
OfficeIMO.Security
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Creates and decrypts CMS EnvelopedData for X.509 recipients.

Inheritance

  • object
  • CmsEnvelopedDataService

Methods

public static CmsDecryptionResult Decrypt(byte[] encodedCms, X509Certificate2 recipientCertificate, CmsEnvelopeOptions? options = null) #

Decrypts content for a matching RSA recipient certificate.

Parameters

encodedCms byte[] required
recipientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 required
options OfficeIMO.Security.CmsEnvelopeOptions? = null optional

Returns

CmsDecryptionResult
public static byte[] Encrypt(byte[] content, IEnumerable<X509Certificate2> recipients, CmsEnvelopeOptions? options = null) #

Encrypts content for every supplied recipient certificate.

Parameters

content byte[] required
recipients System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2> required
options OfficeIMO.Security.CmsEnvelopeOptions? = null optional

Returns

byte[]