RandomSource.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_RANDOMSOURCE_H
#define SH_RANDOMSOURCE_H
#include <cstdio>
#include <vector>
class BitString ;
class RandomSource {
public:
RandomSource (void) ;
~RandomSource (void) ;
BYTE getByte (void) ;
std::vector<BYTE> getBytes (unsigned int n) ;
BitString getBits (unsigned int n) ;
bool getBool (void) ;
unsigned long getValue (unsigned long n) ;
private:
unsigned int RandomBytePos ;
BYTE RandomByte ;
FILE *RandomInput ;
} ;
#endif // ndef SH_RANDOMSOURCE_H
BitString
a string of bits
Definition BitString.h:42
RandomSource::getValue
unsigned long getValue(unsigned long n)
Definition RandomSource.cc:110
RandomSource::~RandomSource
~RandomSource(void)
Definition RandomSource.cc:49
RandomSource::RandomBytePos
unsigned int RandomBytePos
Definition RandomSource.h:72
RandomSource::getBytes
std::vector< BYTE > getBytes(unsigned int n)
Definition RandomSource.cc:72
RandomSource::RandomByte
BYTE RandomByte
Definition RandomSource.h:73
RandomSource::getBits
BitString getBits(unsigned int n)
Definition RandomSource.cc:81
RandomSource::RandomSource
RandomSource(void)
Definition RandomSource.cc:33
RandomSource::RandomInput
FILE * RandomInput
Definition RandomSource.h:78
RandomSource::getByte
BYTE getByte(void)
Definition RandomSource.cc:58
RandomSource::getBool
bool getBool(void)
Definition RandomSource.cc:99
BYTE
unsigned char BYTE
Definition common.h:47