Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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 Methods

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 Wed Jun 2 16:33:04 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18