API Reference
Interface
IOfficeAesCryptographyProvider
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.
Methods
public abstract Byte[] DecryptCbc(Byte[] key, Byte[] initializationVector, Byte[] ciphertext, OfficeAesPadding padding) #Returns:
Byte[]Decrypts the supplied ciphertext using AES-CBC.
Parameters
- key System.Byte[]
- initializationVector System.Byte[]
- ciphertext System.Byte[]
- padding OfficeIMO.Security.OfficeAesPadding
public abstract Byte[] EncryptCbc(Byte[] key, Byte[] initializationVector, Byte[] plaintext, OfficeAesPadding padding) #Returns:
Byte[]Encrypts the supplied plaintext using AES-CBC.
Parameters
- key System.Byte[]
- initializationVector System.Byte[]
- plaintext System.Byte[]
- padding OfficeIMO.Security.OfficeAesPadding
Properties
public abstract String Name { get; } #Gets a stable provider name for diagnostics.