Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Ciphers::HashFunction Class Reference

This is the base class for functional objects that compute hashes. More...

#include <HashFunction.h>

Inheritance diagram for CODEX_Ciphers::HashFunction:

Inheritance graph
[legend]
List of all members.

Public Types

typedef CODEX_ASN1::ustring ustring
 Shortened name for basic_string< unsigned char >.

Public Member Functions

virtual ustringoperator() (const ustring &buff) const =0
virtual ustringoperator() (const ustring &buff, unsigned int len) const =0

Detailed Description

This is the base class for functional objects that compute hashes.

It's important to use the same derived class consistently.

Definition at line 30 of file HashFunction.h.


Member Function Documentation

virtual ustring* CODEX_Ciphers::HashFunction::operator() const ustring buff,
unsigned int  len
const [pure virtual]
 

Parameters:
buff The data to hash as a ustring.
len The desired length of the output, in bits.
Returns:
A new ustring containing the hash output.

Implemented in CODEX_Ciphers::SHA1HashFunction.

virtual ustring* CODEX_Ciphers::HashFunction::operator() const ustring buff  )  const [pure virtual]
 

Parameters:
buff The data to hash as a ustring.
Returns:
A new ustring containing the hash output.

Implemented in CODEX_Ciphers::SHA1HashFunction.


The documentation for this class was generated from the following file:
Generated on Fri May 6 17:41:51 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1