#include <MHashPP.h>
Public Types | |
enum | Command { endhash } |
Public Member Functions | |
MHashPP (void) | |
MHashPP (hashid a) | |
void | init (hashid a) |
const std::vector< BYTE > & | end (void) |
MHashPP & | operator<< (std::string v) |
MHashPP & | operator<< (BitString v) |
MHashPP & | operator<< (BYTE v) |
MHashPP & | operator<< (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 | |
static 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< BYTE > | HashBytes |
enum MHashPP::Command |
MHashPP::MHashPP | ( | void | ) |
MHashPP::MHashPP | ( | hashid | a | ) |
void MHashPP::init | ( | hashid | a | ) |
const std::vector< BYTE > & MHashPP::end | ( | void | ) |
MHashPP & MHashPP::operator<< | ( | std::string | v | ) |
feed the std::string v to the hashing algorithm
v | the std::string to be feeded to the hashing algorithm (without '' at the end) |
feed the byte v to the hashing algorithm
v | the byte to be feeded to the hashing algorithm |
MHashPP & MHashPP::operator<< | ( | MHashPP::Command | c | ) |
interpret the command c
c | a command (member of MHashPP::Command) |
BitString MHashPP::getHashBits | ( | void | ) |
get the hash bits
const std::vector< BYTE > & MHashPP::getHashBytes | ( | void | ) |
unsigned int MHashPP::getHashSize | ( | void | ) |
get the hash size
std::string MHashPP::getAlgorithmName | ( | void | ) | [private] |
std::string MHashPP::getAlgorithmName | ( | hashid | id | ) | [static, private] |
bool MHashPP::hashing [private] |
MHASH MHashPP::HashD [private] |
bool MHashPP::HashBytesValid [private] |
std::vector<BYTE> MHashPP::HashBytes [private] |