|
Public Types |
| enum | MODE { EMBED,
EXTRACT
} |
| enum | STATE {
READ_MAGIC,
READ_VERSION,
READ_ENCINFO,
READ_NPLAINBITS,
READ_ENCRYPTED,
END
} |
Public Member Functions |
| | EmbData (MODE m, std::string pp, std::string fn="") |
| BitString | getBitString (void) |
| bool | finished (void) |
| unsigned long | getNumBitsRequested (void) |
| void | addBits (BitString addbits) |
| void | setEncAlgo (EncryptionAlgorithm a) |
| EncryptionAlgorithm | getEncAlgo (void) const |
| void | setEncMode (EncryptionMode m) |
| EncryptionMode | getEncMode (void) const |
| void | setCompression (int c) |
| int | getCompression (void) const |
| void | setChecksum (bool c) |
| bool | getChecksum (void) const |
| bool | checksumOK (void) const |
| void | setData (const std::vector< BYTE > data) |
| std::vector< BYTE > | getData (void) const |
| std::string | getFileName (void) const |
Static Public Attributes |
| const unsigned int | MinStegoHeaderSize = 50 |
| | the minimum size of the part of the generatred BitString that is not the data
|
Protected Member Functions |
| std::string | stripDir (std::string s) |
Private Attributes |
| MODE | Mode |
| STATE | State |
| unsigned long | NPlainBits |
| unsigned long | NumBitsRequested |
| | the number of bits that the caller must at least supply to addBits
|
| unsigned long | NumBitsNeeded |
| | exactly the number of bits that the next step will consume from Reservoir and addBits together
|
| BitString | Reservoir |
| std::string | Passphrase |
| unsigned short | Version |
| | version read from input bitstring
|
| EncryptionAlgorithm | EncAlgo |
| EncryptionMode | EncMode |
| int | Compression |
| | compression level: 0(none),1(best speed),...,9(best compression)
|
| bool | Checksum |
| | will a checksum be embedded ?
|
| unsigned long | CRC32 |
| | the checksum
|
| std::string | FileName |
| std::vector< BYTE > | Data |
| | contains the actual message to be embedded
|
Static Private Attributes |
| const unsigned int | NBitsNPlainBits = 32 |
| | number of bits used to code the number of plain bits
|
| const unsigned int | NBitsNUncompressedBits = 32 |
| | number of bits used to code the number of uncompressed bits
|
| const unsigned int | NBitsCrc32 = 32 |
| | size of a crc32 checksum in bits
|
| const unsigned short | CodeVersion = 0 |
| | version of this steghide embedding (stego compatibility of EmbData)
|
| const UWORD32 | Magic = 0x73688DUL |
| | steghide magic to recognize embedded data (the string "shm")
|
| const unsigned int | NBitsMagic = 24 |
| | size (in bits of Magic)
|