mhashpp(3)

NAME

MHashPP

SYNOPSIS

#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

Member Enumeration Documentation

enum MHashPP::Command
Enumerator:
endhash

Constructor & Destructor Documentation

MHashPP::MHashPP (void)
MHashPP::MHashPP (hashid a)

Member Function Documentation

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
Parameters:
v the std::string to be feeded to the hashing algorithm (without '' at the end)
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<< (BYTE v)
feed the byte v to the hashing algorithm
Parameters:
v the byte to be feeded to the hashing algorithm
MHashPP & MHashPP::operator<< (Command c)
interpret the command c
Parameters:
c a command (member of MHashPP::Command)
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
std::string MHashPP::getAlgorithmName (void) [private] std::string MHashPP::getAlgorithmName (hashid id) [static, private]

Member Data Documentation

bool MHashPP::hashing [private] MHASH MHashPP::HashD [private] bool MHashPP::HashBytesValid [private] std::vector<BYTE> MHashPP::HashBytes [private]

Author

Generated automatically by Doxygen for steghide from the source code.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout