Key class. More...

#include <secret.h>

Public Member Functions

 Secret ()
 Constructs a key (unset) More...
 
 Secret (unsigned int new_key_length)
 Constructs a key to a specified length. More...
 
unsigned char * get_data () const
 Get the key data. More...
 
unsigned int get_size () const
 Get the key size. More...
 

Detailed Description

Key class.

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

Constructor & Destructor Documentation

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

Parameters
new_key_length= Length of the key

Member Function Documentation

unsigned char* clan::Secret::get_data ( ) const

Get the key data.

Returns
The key
unsigned int clan::Secret::get_size ( ) const

Get the key size.

Returns
The key size

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