Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeManagedAesCryptographyProvider

Namespace OfficeIMO.Security
Assembly OfficeIMO.Core
Modifiers sealed

Provides a portable managed AES-CBC implementation for hosts where the platform AES factory is unavailable.

Inheritance

  • Object
  • OfficeManagedAesCryptographyProvider

Remarks

The implementation supports 128-bit, 192-bit, and 256-bit AES keys with no padding or PKCS#7 padding. It is intended for compatibility hosts such as browser WebAssembly. Applications running on a platform with native AES support can leave the PDF provider unset and use the platform implementation.

Usage

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

Returned or exposed by

Constructors

public OfficeManagedAesCryptographyProvider() #

Methods

public virtual Byte[] DecryptCbc(Byte[] key, Byte[] iv, Byte[] input, OfficeAesPadding padding) #
Returns: Byte[]

Parameters

key System.Byte[] requiredposition: 0
iv System.Byte[] requiredposition: 1
input System.Byte[] requiredposition: 2
padding OfficeIMO.Security.OfficeAesPadding requiredposition: 3
public virtual Byte[] EncryptCbc(Byte[] key, Byte[] iv, Byte[] input, OfficeAesPadding padding) #
Returns: Byte[]

Parameters

key System.Byte[] requiredposition: 0
iv System.Byte[] requiredposition: 1
input System.Byte[] requiredposition: 2
padding OfficeIMO.Security.OfficeAesPadding requiredposition: 3

Properties

public static OfficeManagedAesCryptographyProvider Default { get; } #

Gets the shared stateless provider instance.