Class
OfficeManagedAesCryptographyProvider
OfficeIMO.Security
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
Explore 1 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.
Returned or exposed by 1
Constructors
public OfficeManagedAesCryptographyProvider() #Methods
public byte[] DecryptCbc(byte[] key, byte[] iv, byte[] input, OfficeAesPadding padding) #Decrypts the supplied ciphertext using AES-CBC.
Parameters
- key byte[]
- iv byte[]
- input byte[]
- padding OfficeIMO.Security.OfficeAesPadding
Returns
byte[]public byte[] EncryptCbc(byte[] key, byte[] iv, byte[] input, OfficeAesPadding padding) #Encrypts the supplied plaintext using AES-CBC.
Parameters
- key byte[]
- iv byte[]
- input byte[]
- padding OfficeIMO.Security.OfficeAesPadding
Returns
byte[]