CBC

implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher.

Members

Functions

getUnderlyingCipher
Cipher getUnderlyingCipher()

return the underlying block cipher that we are wrapping.

processBlock
uint processBlock(in ubyte[] input, ubyte[] output)

Process one block of input from the array in and write it to the out array.

reset
void reset()

reset the chaining vector back to the IV and reset the underlying cipher.

start
void start(bool forEncryption, in ubyte[] userKey, in ubyte[] iv = null)

Initialize the cipher and, possibly, the initialization vector (IV). If the cipher is already initialized a new IV can be set without the overhead of a new key setup: init(forEncryption, null, newIV)

Meta