Class AESCipher
Creates an AES Cipher with CBC and padding PKCS5/7.
public class AESCipher
- Inheritance
-
AESCipher
- Inherited Members
Constructors
AESCipher(bool, byte[], byte[])
Creates a new instance of AESCipher
public AESCipher(bool forEncryption, byte[] key, byte[] iv)
Parameters
forEncryption
boolif true the cipher is initialised for encryption, if false for decryption
key
byte[]the key to be used in the cipher
iv
byte[]initialization vector to be used in cipher
Methods
DoFinal()
public virtual byte[] DoFinal()
Returns
- byte[]
Update(byte[], int, int)
public virtual byte[] Update(byte[] inp, int inpOff, int inpLen)
Parameters
Returns
- byte[]