ucommon::keyrandom< S > Class Template Reference

A template to create a random generated key of specified size. More...

#include <secure.h>


Public Member Functions

void clear (void)
 Clear current key memory.
 keyrandom ()
 Create a new character buffer with an empty string.
unsigned char * operator * ()
 Get text by object pointer reference.
 operator unsigned char * ()
 Get text by casting reference.
size_t size (void)
 Get allocated size of the object.
void update (void)
 Update with new random key.
 ~keyrandom ()
 Clear memory when destroyed.


Detailed Description

template<size_t S>
class ucommon::keyrandom< S >

A template to create a random generated key of specified size.

The key memory is cleared when the object is destroyed.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 903 of file secure.h.


Member Function Documentation

template<size_t S>
unsigned char* ucommon::keyrandom< S >::operator * (  )  [inline]

Get text by object pointer reference.

Returns:
pointer to text in object.

Definition at line 949 of file secure.h.

template<size_t S>
ucommon::keyrandom< S >::operator unsigned char * (  )  [inline]

Get text by casting reference.

Returns:
pointer to text in object.

Definition at line 942 of file secure.h.

template<size_t S>
size_t ucommon::keyrandom< S >::size ( void   )  [inline]

Get allocated size of the object.

Returns:
allocated size.

Definition at line 956 of file secure.h.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7