GcryptWithIV

Gcrypt algorithm template for algorithms with initialization vectors.

Constructors

this
this(void[] key)

Constructor

Members

Functions

decrypt
void decrypt(mstring buffer, void[] iv)

Decrypt the content of buffer in place.

encrypt
void encrypt(mstring buffer, void[] iv)

Encrypt the content of buffer in place.

setInitVector
void setInitVector(void[] iv)

Set the initialization vector to use.

Static functions

generateIV
void[] generateIV()

Helper function to generate a void[] suitable for use as an IV in unittests.

required_iv_len
size_t required_iv_len()

Parameters

algorithm

algorithm which this class uses for en/decryption

mode

algorithm mode which this class uses for en/decryption

Meta