A cryptographic digest class.
More...
#include <secure.h>
|
const char * | c_str (void) |
|
| Digest (const char *type) |
|
const unsigned char * | get (void) |
|
| operator bool () const |
|
| operator String () |
|
bool | operator! () const |
|
const char * | operator* () |
|
bool | operator*= (const char *text) |
|
bool | operator+= (const char *text) |
|
Digest & | operator<< (const char *str) |
|
Digest & | operator<< (int16_t value) |
|
Digest & | operator<< (int32_t value) |
|
Digest & | operator<< (const PrintProtocol &p) |
|
void | operator= (const char *id) |
|
bool | put (const void *memory, size_t size) |
|
bool | puts (const char *str) |
|
void | recycle (bool binary=false) |
| Finalize and recycle current digest to start a new digest.
|
|
void | reset (void) |
| Reset and restart digest object.
|
|
void | set (const char *id) |
|
unsigned | size () const |
|
String | str (void) |
|
|
static bool | has (const char *name) |
| Test to see if a specific digest type is supported.
|
|
static void | uuid (char *string, const char *name, const unsigned char *ns=((void *) 0)) |
|
static String | uuid (const char *name, const unsigned char *ns=((void *) 0)) |
|
A cryptographic digest class.
This class can support md5 digests, sha1, sha256, etc, depending on what the underlying library supports. The hash class accumulates the hash in the object.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 431 of file secure.h.
static bool ucommon::Digest::has |
( |
const char * |
name | ) |
|
|
static |
Test to see if a specific digest type is supported.
- Parameters
-
name | of digest we want to check. |
- Returns
- true if supported, false if not.
void ucommon::Digest::recycle |
( |
bool |
binary = false | ) |
|
Finalize and recycle current digest to start a new digest.
- Parameters
-
binary | digest used rather than text if true. |
The documentation for this class was generated from the following file: