ucommon::Digest Class Reference

A cryptographic digest class. More...

#include <secure.h>


Public Member Functions

char * c_str (void)
 Digest (char *type)
unsigned char * get (void)
char * operator * ()
bool operator *= (char *text)
 operator bool ()
 operator String ()
bool operator! ()
bool operator+= (char *text)
Digestoperator<< (PrintProtocol &p)
Digestoperator<< (int32_t value)
Digestoperator<< (int16_t value)
Digestoperator<< (char *str)
void operator= (char *id)
bool put (void *memory, size_t size)
bool puts (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 (char *id)
unsigned size ()
String str (void)

Static Public Member Functions

static bool has (char *name)
 Test to see if a specific digest type is supported.
static String uuid (char *name, unsigned char *ns=((void *) 0))
static void uuid (char *string, char *name, unsigned char *ns=((void *) 0))

Protected Member Functions

void release (void)


Detailed Description

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@gnutelephony.org>

Definition at line 431 of file secure.h.


Member Function Documentation

static bool ucommon::Digest::has ( 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:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7