emp-toolkit
Hash Class Reference

#include <hash.h>

Public Member Functions

 Hash ()
 
 ~Hash ()
 
void put (const void *data, int nbyte)
 
void put_block (const block *block, int nblock=1)
 
void digest (char *a)
 
void reset ()
 
void put_eb (const eb_t *eb, int length)
 

Static Public Member Functions

static void hash_once (void *digest, const void *data, int nbyte)
 
static block hash_for_block (const void *data, int nbyte)
 

Static Public Attributes

static const int DIGEST_SIZE = 20
 

Constructor & Destructor Documentation

§ Hash()

Hash::Hash ( )
inline

§ ~Hash()

Hash::~Hash ( )
inline

Member Function Documentation

§ digest()

void Hash::digest ( char *  a)
inline

§ hash_for_block()

static block Hash::hash_for_block ( const void *  data,
int  nbyte 
)
inlinestatic

§ hash_once()

static void Hash::hash_once ( void *  digest,
const void *  data,
int  nbyte 
)
inlinestatic

§ put()

void Hash::put ( const void *  data,
int  nbyte 
)
inline

§ put_block()

void Hash::put_block ( const block block,
int  nblock = 1 
)
inline

§ put_eb()

void Hash::put_eb ( const eb_t *  eb,
int  length 
)
inline

§ reset()

void Hash::reset ( )
inline

Member Data Documentation

§ DIGEST_SIZE

const int Hash::DIGEST_SIZE = 20
static

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