# IOfficeAesCryptographyProvider

Supplies synchronous AES-CBC operations for hosts where the platform cryptography implementation is unavailable.

Interface 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

abstract

Supplies synchronous AES-CBC operations for hosts where the platform cryptography implementation is unavailable. Implementations are expected to return a new byte array and must not mutate caller-owned inputs.

Filter members 

Show inherited

## Methods

`public abstract byte[] DecryptCbc(byte[] key, byte[] initializationVector, byte[] ciphertext, OfficeAesPadding padding)` [#](#method-decryptcbc-byte-byte-byte-officeimo-security-officeaespadding)

Decrypts the supplied ciphertext using AES-CBC.

Parameters

**key byte[] required**

**initializationVector byte[] required**

**ciphertext byte[] required**

**padding OfficeIMO.Security.OfficeAesPadding required**

Returns

`byte[]`

`public abstract byte[] EncryptCbc(byte[] key, byte[] initializationVector, byte[] plaintext, OfficeAesPadding padding)` [#](#method-encryptcbc-byte-byte-byte-officeimo-security-officeaespadding)

Encrypts the supplied plaintext using AES-CBC.

Parameters

**key byte[] required**

**initializationVector byte[] required**

**plaintext byte[] required**

**padding OfficeIMO.Security.OfficeAesPadding required**

Returns

`byte[]`

## Properties

`public abstract string Name { get; }` [#](#property-name)

Gets a stable provider name for diagnostics.

<!-- PowerForge markdown artifact sha256:13C4FFFB281A54258707ABE6F4F6FD77411F092742FCF542027713B95AF24A93 -->
