CipherMode
Base class for cipher mode implementations
Holds block size of the cipher.
Gets the cipher.
Gets the IV vector.
Initializes a new instance of the CipherMode class.
public abstract int DecryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
public abstract int EncryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.