Key

Basic struct for for storing a key. Includes a key, an iv and a salt.

Members

Functions

randomize
Key randomize(int keyLength, int ivLength)

Creates a random key and iv of the specified size

randomizeSalt
Key randomizeSalt(size_t size)

Creates a random salt of the specified size.

setSize
void setSize(int keyLength, int ivLength)

Allocates memory for the requested key lengths. By default they are set to the maximum values per the openssl library.

Variables

iv
ubyte[] iv;
Undocumented in source.
key
ubyte[] key;
salt
ubyte[] salt;
Undocumented in source.

Meta