steghide
0.5.1
Main Page
Classes
Files
File List
File Members
src
MHashPP.h
Go to the documentation of this file.
1
/*
2
* steghide 0.5.1 - a steganography program
3
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*
19
*/
20
21
#ifndef SH_MHASHPP_H
22
#define SH_MHASHPP_H
23
24
#include <mhash.h>
25
26
#include "
common.h
"
27
28
class
BitString
;
29
30
class
MHashPP
{
31
public
:
32
enum
Command
{
endhash
} ;
33
34
MHashPP
(
void
) ;
35
MHashPP
(hashid a) ;
36
37
void
init
(hashid a) ;
38
39
const
std::vector<BYTE>&
end
(
void
) ;
40
45
MHashPP
&
operator<<
(std::string v) ;
46
51
MHashPP
&
operator<<
(
BitString
v) ;
52
57
MHashPP
&
operator<<
(
BYTE
v) ;
58
63
MHashPP
&
operator<<
(
Command
c) ;
64
69
BitString
getHashBits
(
void
) ;
70
71
const
std::vector<BYTE>&
getHashBytes
(
void
) ;
72
77
unsigned
int
getHashSize
(
void
) ;
78
79
private
:
81
bool
hashing
;
82
MHASH
HashD
;
83
85
bool
HashBytesValid
;
86
std::vector<BYTE>
HashBytes
;
87
88
std::string
getAlgorithmName
(
void
) ;
89
static
std::string
getAlgorithmName
(hashid
id
) ;
90
} ;
91
92
#endif // ndef SH_MHASHPP_H
Generated on Mon Jan 14 2013 04:45:06 for steghide by
1.8.3