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< Secretcreate (unsigned int new_key_length)
 Constructs a key to a specified length. More...
 

Detailed Description

Key class.

This class zero's the key from memory when the class is destroyed

Member Function Documentation

static std::shared_ptr<Secret> uicore::Secret::create ( unsigned int  new_key_length)
static

Constructs a key to a specified length.

The data is not initialised

Parameters
new_key_length= Length of the key
virtual unsigned char* uicore::Secret::data ( ) const
pure virtual

Get the key data.

Returns
The key
virtual unsigned int uicore::Secret::size ( ) const
pure virtual

Get the key size.

Returns
The key size

The documentation for this class was generated from the following file: