adchpp::TigerHash Class Reference

#include <TigerHash.h>

Inheritance diagram for adchpp::TigerHash:
Inheritance graph
[legend]
Collaboration diagram for adchpp::TigerHash:
Collaboration graph
[legend]

List of all members.

Public Member Functions

ADCHPP_DLL uint8_t * finalize ()
 Call once all data has been processed.
uint8_t * getResult ()
 TigerHash ()
ADCHPP_DLL void update (const void *data, size_t len)
 Calculates the Tiger hash of the data.
 ~TigerHash ()

Static Public Attributes

static const size_t BITS = 192
 Hash size.
static const size_t BYTES = BITS / 8

Private Types

enum  { BLOCK_SIZE = 512/8 }

Private Member Functions

void tigerCompress (const uint64_t *data, uint64_t state[3])

Private Attributes

uint64_t pos
 Total number of bytes compressed.
uint64_t res [3]
 State / final hash value.
uint8_t tmp [512/8]
 512 bit blocks for the compress function

Static Private Attributes

static uint64_t table []
 S boxes.

Detailed Description

Definition at line 24 of file TigerHash.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
BLOCK_SIZE 

Definition at line 45 of file TigerHash.h.


Constructor & Destructor Documentation

adchpp::TigerHash::TigerHash (  )  [inline]

Definition at line 30 of file TigerHash.h.

References _ULL, and res.

adchpp::TigerHash::~TigerHash (  )  [inline]

Definition at line 36 of file TigerHash.h.


Member Function Documentation

uint8_t * adchpp::TigerHash::finalize (  ) 

Call once all data has been processed.

Definition at line 152 of file TigerHash.cpp.

References BLOCK_SIZE, getResult(), pos, res, tigerCompress(), and tmp.

Referenced by adchpp::ClientManager::verifyCID(), and adchpp::ClientManager::verifyPassword().

Here is the call graph for this function:

Here is the caller graph for this function:

uint8_t* adchpp::TigerHash::getResult (  )  [inline]

Definition at line 43 of file TigerHash.h.

References res.

Referenced by finalize().

Here is the caller graph for this function:

void adchpp::TigerHash::tigerCompress ( const uint64_t *  data,
uint64_t  state[3] 
) [private]

Definition at line 115 of file TigerHash.cpp.

References tiger_compress_macro.

Referenced by finalize(), and update().

Here is the caller graph for this function:

void adchpp::TigerHash::update ( const void *  data,
size_t  len 
)

Calculates the Tiger hash of the data.

Definition at line 119 of file TigerHash.cpp.

References BLOCK_SIZE, dcassert, pos, res, tigerCompress(), and tmp.

Referenced by adchpp::ClientManager::verifyCID(), and adchpp::ClientManager::verifyPassword().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const size_t adchpp::TigerHash::BITS = 192 [static]

Hash size.

Definition at line 27 of file TigerHash.h.

const size_t adchpp::TigerHash::BYTES = BITS / 8 [static]

Definition at line 28 of file TigerHash.h.

Referenced by adchpp::ClientManager::verifyPassword().

uint64_t adchpp::TigerHash::pos [private]

Total number of bytes compressed.

Definition at line 51 of file TigerHash.h.

Referenced by finalize(), and update().

uint64_t adchpp::TigerHash::res[3] [private]

State / final hash value.

Definition at line 49 of file TigerHash.h.

Referenced by finalize(), getResult(), TigerHash(), and update().

uint64_t adchpp::TigerHash::table [static, private]

S boxes.

Definition at line 53 of file TigerHash.h.

uint8_t adchpp::TigerHash::tmp[512/8] [private]

512 bit blocks for the compress function

Definition at line 47 of file TigerHash.h.

Referenced by finalize(), and update().

Generated on Sat Nov 27 23:38:56 2010 for adchpp by  doxygen 1.6.3