IBlockCipher

OOP API for block ciphers

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[] userKey, 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.

Meta