# CmsEnvelopeOptions

Safety and algorithm options for CMS EnvelopedData.

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CmsEnvelopedDataModels.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L17)

**Modifiers**

sealed

Safety and algorithm options for CMS EnvelopedData.

## Inheritance

- object
- CmsEnvelopeOptions

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [IOfficeSecurityProvider.DecryptCms](/api/core/officeimo-security-iofficesecurityprovider/#method-decryptcms-byte-security-cryptography-x509certificates-x509certificate2-officeimo-security-cmsenvelopeoptions) parameter `options`
- Method [IOfficeSecurityProvider.EncryptCms](/api/core/officeimo-security-iofficesecurityprovider/#method-encryptcms-byte-collections-generic-ienumerable-system-security-cryptography-x509certificates-x509certificate2-officeimo-security-cmsenvelopeoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public CmsEnvelopeOptions()` [#](#constructor-ctor)

[CmsEnvelopedDataModels.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L17)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public CmsContentEncryptionAlgorithm ContentEncryptionAlgorithm { get; set; }` [#](#property-contentencryptionalgorithm)

[CmsEnvelopedDataModels.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L16)

Content-encryption algorithm. Defaults to AES-256-CBC.

`public long MaxContentBytes { get; set; }` [#](#property-maxcontentbytes)

[CmsEnvelopedDataModels.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L19)

Maximum plaintext bytes accepted or returned. Defaults to 512 MiB.

`public long MaxEncodedBytes { get; set; }` [#](#property-maxencodedbytes)

[CmsEnvelopedDataModels.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L21)

Maximum encoded envelope bytes accepted. Defaults to 512 MiB.

`public int MaxRecipients { get; set; }` [#](#property-maxrecipients)

[CmsEnvelopedDataModels.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L23)

Maximum recipient count. Defaults to 64.

<!-- PowerForge markdown artifact sha256:25125F8375184D410697A0546A7461E72A8259F781E9F160C84056B0E1AE32D9 -->
