#include <EmbData.h>
|
static const unsigned int | NBitsNPlainBits = 32 |
| number of bits used to code the number of plain bits
|
|
static const unsigned int | NBitsNUncompressedBits = 32 |
| number of bits used to code the number of uncompressed bits
|
|
static const unsigned int | NBitsCrc32 = 32 |
| size of a crc32 checksum in bits
|
|
static const unsigned short | CodeVersion = 0 |
| version of this steghide embedding (stego compatibility of EmbData)
|
|
static const UWORD32 | Magic = 0x73688DUL |
| steghide magic to recognize embedded data (the string "shm")
|
|
static const unsigned int | NBitsMagic = 24 |
| size (in bits of Magic)
|
|
Enumerator |
---|
READ_MAGIC |
|
READ_VERSION |
|
READ_ENCINFO |
|
READ_NPLAINBITS |
|
READ_ENCRYPTED |
|
END |
|
EmbData::EmbData |
( |
MODE |
m, |
|
|
std::string |
pp, |
|
|
std::string |
fn = "" |
|
) |
| |
construct a new EmbData object
- Parameters
-
m | the mode (EMBED or EXTRACT) |
pp | the passphrase |
fn | the filename (only need for mode EMBED) |
bool EmbData::checksumOK |
( |
void |
| ) |
const |
check if crc32 checksum is ok (needs filled Data and CRC32 fields)
- Returns
- true iff checksum is ok
bool EmbData::finished |
( |
void |
| ) |
|
bool EmbData::getChecksum |
( |
void |
| ) |
const |
int EmbData::getCompression |
( |
void |
| ) |
const |
std::vector<BYTE> EmbData::getData |
( |
void |
| ) |
const |
|
inline |
std::string EmbData::getFileName |
( |
void |
| ) |
const |
|
inline |
unsigned long EmbData::getNumBitsRequested |
( |
void |
| ) |
|
get the minimum length of the BitString that is to be passed to addBits
void EmbData::setChecksum |
( |
bool |
c | ) |
|
void EmbData::setCompression |
( |
int |
c | ) |
|
void EmbData::setData |
( |
const std::vector< BYTE > |
data | ) |
|
|
inline |
std::string EmbData::stripDir |
( |
std::string |
s | ) |
|
|
protected |
const unsigned short EmbData::CodeVersion = 0 |
|
staticprivate |
unsigned long EmbData::CRC32 |
|
private |
std::vector<BYTE> EmbData::Data |
|
private |
std::string EmbData::FileName |
|
private |
const UWORD32 EmbData::Magic = 0x73688DUL |
|
staticprivate |
const unsigned int EmbData::MinStegoHeaderSize = 50 |
|
static |
const unsigned int EmbData::NBitsCrc32 = 32 |
|
staticprivate |
const unsigned int EmbData::NBitsMagic = 24 |
|
staticprivate |
const unsigned int EmbData::NBitsNPlainBits = 32 |
|
staticprivate |
const unsigned int EmbData::NBitsNUncompressedBits = 32 |
|
staticprivate |
unsigned long EmbData::NPlainBits |
|
private |
unsigned long EmbData::NumBitsNeeded |
|
private |
unsigned long EmbData::NumBitsRequested |
|
private |
std::string EmbData::Passphrase |
|
private |
unsigned short EmbData::Version |
|
private |
The documentation for this class was generated from the following files: