steghide 0.5.1
MHashKeyGen.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_MHASHKEYGEN_H
22#define SH_MHASHKEYGEN_H
23
24#include <vector>
25
26#include <mhash.h>
27
29 public:
30 MHashKeyGen (void) ;
31 MHashKeyGen (keygenid kgalgo, hashid halgo, unsigned int keysize) ;
32 ~MHashKeyGen (void) ;
33
34 void setKeySize (unsigned int KeySize) ;
35 void setKeyGenAlgorithm (keygenid algo) ;
36 void setHashAlgorithm (hashid hashalgo) ;
37 void setHashAlgorithms (std::vector<hashid> hashalgos) ;
38 void setSalt (std::vector<unsigned char> salt) ;
39
40 std::vector<unsigned char> createKey (std::string password) ;
41
42 private:
43 bool ready ;
44 keygenid Algorithm ;
46 unsigned int KeySize ;
47
48 void *s_malloc (size_t size) ;
49} ;
50
51#endif // ndef SH_MHASHKEYGEN_H
keygenid Algorithm
Definition MHashKeyGen.h:44
MHashKeyGen(void)
Definition MHashKeyGen.cc:29
void setHashAlgorithms(std::vector< hashid > hashalgos)
Definition MHashKeyGen.cc:90
KEYGEN AlgorithmData
Definition MHashKeyGen.h:45
unsigned int KeySize
Definition MHashKeyGen.h:46
void setKeyGenAlgorithm(keygenid algo)
Definition MHashKeyGen.cc:80
void setHashAlgorithm(hashid hashalgo)
Definition MHashKeyGen.cc:85
std::vector< unsigned char > createKey(std::string password)
Definition MHashKeyGen.cc:53
void * s_malloc(size_t size)
Definition MHashKeyGen.cc:111
bool ready
Definition MHashKeyGen.h:43
~MHashKeyGen(void)
Definition MHashKeyGen.cc:46
void setSalt(std::vector< unsigned char > salt)
Definition MHashKeyGen.cc:98
void setKeySize(unsigned int KeySize)
Definition MHashKeyGen.cc:75