#include <secret.h>
Public Member Functions | |
Secret () | |
Constructs a key (unset) | |
Secret (unsigned int new_key_length) | |
Constructs a key to a specified length. | |
unsigned char * | get_data () const |
Get the key data. | |
unsigned int | get_size () const |
Get the key size. | |
Key class.
This class zero's the key from memory when the class is destroyed
clan::Secret::Secret | ( | ) |
Constructs a key (unset)
clan::Secret::Secret | ( | unsigned int | new_key_length | ) |
Constructs a key to a specified length.
The data is not initialised
new_key_length | = Length of the key |
unsigned char * clan::Secret::get_data | ( | ) | const |
Get the key data.
unsigned int clan::Secret::get_size | ( | ) | const |
Get the key size.