A template to create a random generated key of specified size.
More...
#include <secure.h>
|
void | clear (void) |
| Clear current key memory.
|
|
| keyrandom () |
| Create a new character buffer with an empty string.
|
|
| operator unsigned char * () |
| Get text by casting reference.
|
|
unsigned char * | operator* () |
| Get text by object pointer reference.
|
|
size_t | size (void) const |
| Get allocated size of the object.
|
|
void | update (void) |
| Update with new random key.
|
|
| ~keyrandom () |
| Clear memory when destroyed.
|
|
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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 903 of file secure.h.
Get text by casting reference.
- Returns
- pointer to text in object.
Definition at line 942 of file secure.h.
Get text by object pointer reference.
- Returns
- pointer to text in object.
Definition at line 949 of file secure.h.
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: