CL_Secret Class Reference
[clanCore Crypto]

Key class. More...

#include <secret.h>

List of all members.

Public Member Functions

Construction

 CL_Secret ()
 Constructs a key (unset).
 CL_Secret (unsigned int new_key_length)
 Constructs a key to a specified length.
Attributes

unsigned int get_size () const
 Get the key size.
unsigned char * get_data () const
 Get the key data.

Detailed Description

Key class.

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


Constructor & Destructor Documentation

CL_Secret::CL_Secret (  ) 

Constructs a key (unset).

CL_Secret::CL_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* CL_Secret::get_data (  )  const

Get the key data.

Returns:
The key
unsigned int CL_Secret::get_size (  )  const

Get the key size.

Returns:
The key size

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