Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MHashPP Class Reference

#include <MHashPP.h>

List of all members.

Public Types

enum  Command { endhash }

Public Member Functions

 MHashPP (void)
 MHashPP (hashid a)
void init (hashid a)
const std::vector< BYTE > & end (void)
MHashPPoperator<< (std::string v)
MHashPPoperator<< (BitString v)
MHashPPoperator<< (BYTE v)
MHashPPoperator<< (Command c)
BitString getHashBits (void)
const std::vector< BYTE > & getHashBytes (void)
unsigned int getHashSize (void)

Private Member Functions

std::string getAlgorithmName (void)

Static Private Member Functions

std::string getAlgorithmName (hashid id)

Private Attributes

bool hashing
 true iff HashD contains a legal hash descriptor and data can be passed via <<

MHASH HashD
bool HashBytesValid
 true iff HashBytes contains a valid hash value

std::vector< BYTEHashBytes


Member Enumeration Documentation

enum MHashPP::Command
 

Enumeration values:
endhash 


Constructor & Destructor Documentation

MHashPP::MHashPP void   ) 
 

MHashPP::MHashPP hashid  a  ) 
 


Member Function Documentation

const std::vector< BYTE > & MHashPP::end void   ) 
 

std::string MHashPP::getAlgorithmName hashid  id  )  [static, private]
 

std::string MHashPP::getAlgorithmName void   )  [private]
 

BitString MHashPP::getHashBits void   ) 
 

get the hash bits

Returns:
the hash value of the data that has been passed via <<

const std::vector< BYTE > & MHashPP::getHashBytes void   ) 
 

unsigned int MHashPP::getHashSize void   ) 
 

get the hash size

Returns:
the size of the value returned by getHashBits in bytes

void MHashPP::init hashid  a  ) 
 

MHashPP & MHashPP::operator<< Command  c  ) 
 

interpret the command c

Parameters:
c a command (member of MHashPP::Command)

MHashPP & MHashPP::operator<< BYTE  v  ) 
 

feed the byte v to the hashing algorithm

Parameters:
v the byte to be feeded to the hashing algorithm

MHashPP & MHashPP::operator<< BitString  v  ) 
 

feed the BitString v to the hashing algorithm

Parameters:
v the BitString to be feeded to the hashing algorithm (v.getLength() 8 == 0 must hold)

MHashPP & MHashPP::operator<< std::string  v  ) 
 

feed the std::string v to the hashing algorithm

Parameters:
v the std::string to be feeded to the hashing algorithm (without '' at the end)


Member Data Documentation

std::vector<BYTE> MHashPP::HashBytes [private]
 

bool MHashPP::HashBytesValid [private]
 

MHASH MHashPP::HashD [private]
 

bool MHashPP::hashing [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jul 16 19:41:22 2004 for steghide by doxygen 1.3.7