BlockCipherWrapper

Wraps block ciphers into the OOP API

Members

Functions

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 cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).

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

Initialize the cipher.

Properties

blockSize
uint blockSize [@property getter]

Return the block size for this cipher (in bytes).

name
string name [@property getter]

Return the name of the algorithm the cipher implements.

Inherited Members

From IBlockCipher

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

Initialize the cipher.

name
string name [@property getter]

Return the name of the algorithm the cipher implements.

blockSize
uint blockSize [@property getter]

Return the block size for this cipher (in bytes).

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 cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).

Meta