Key class. More...
#include <secret.h>
Public Member Functions | |
virtual unsigned char * | data () const =0 |
Get the key data. More... | |
virtual unsigned int | size () const =0 |
Get the key size. More... | |
Static Public Member Functions | |
static std::shared_ptr< Secret > | create (unsigned int new_key_length) |
Constructs a key to a specified length. More... | |
Key class.
This class zero's the key from memory when the class is destroyed
|
static |
Constructs a key to a specified length.
The data is not initialised
new_key_length | = Length of the key |
|
pure virtual |
Get the key data.
|
pure virtual |
Get the key size.