MHashPP.h
Go to the documentation of this file.
/*
* steghide 0.5.1 - a steganography program
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef SH_MHASHPP_H
#define SH_MHASHPP_H
#include <mhash.h>
#include "common.h"
class BitString ;
class MHashPP {
public:
enum Command { endhash } ;
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:
bool hashing ;
MHASH HashD ;
bool HashBytesValid ;
std::vector<BYTE> HashBytes ;
std::string getAlgorithmName (void) ;
static std::string getAlgorithmName (hashid id) ;
} ;
#endif // ndef SH_MHASHPP_H
MHashPP::getHashBits
BitString getHashBits(void)
Definition: MHashPP.cc:135
MHashPP::getHashSize
unsigned int getHashSize(void)
Definition: MHashPP.cc:68
MHashPP::end
const std::vector< BYTE > & end(void)
Definition: MHashPP.cc:51
MHashPP::init
void init(hashid a)
Definition: MHashPP.cc:42
MHashPP
Definition: MHashPP.h:30
MHashPP::getHashBytes
const std::vector< BYTE > & getHashBytes(void)
Definition: MHashPP.cc:141
BYTE
unsigned char BYTE
Definition: common.h:47
MHashPP::HashD
MHASH HashD
Definition: MHashPP.h:82
MHashPP::getAlgorithmName
std::string getAlgorithmName(void)
Definition: MHashPP.cc:115
MHashPP::operator<<
MHashPP & operator<<(std::string v)
Definition: MHashPP.cc:74
MHashPP::HashBytesValid
bool HashBytesValid
true iff HashBytes contains a valid hash value
Definition: MHashPP.h:85
BitString
a string of bits
Definition: BitString.h:42
MHashPP::endhash
Definition: MHashPP.h:32
common.h
MHashPP::MHashPP
MHashPP(void)
Definition: MHashPP.cc:31
MHashPP::hashing
bool hashing
true iff HashD contains a legal hash descriptor and data can be passed via <<
Definition: MHashPP.h:81
MHashPP::Command
Command
Definition: MHashPP.h:32
MHashPP::HashBytes
std::vector< BYTE > HashBytes
Definition: MHashPP.h:86