Key

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

Members

Functions

randomize
Key randomize(int keyLength = EVP_MAX_KEY_LENGTH, int ivLength = EVP_MAX_IV_LENGTH)

Creates a random key and iv of the specified size

randomizeSalt
Key randomizeSalt(size_t size = 8)

Creates a random salt of the specified size.

setSize
void setSize(int keyLength = EVP_MAX_KEY_LENGTH, int ivLength = EVP_MAX_IV_LENGTH)

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

Meta