#include <WPXEncryption.h>
Public Member Functions | |
WPXEncryption (const char *password, const unsigned long encryptionStartOffset=0) | |
~WPXEncryption () | |
const unsigned char * | readAndDecrypt (WPXInputStream *input, unsigned long numBytes, unsigned long &numBytesRead) |
uint16_t | getCheckSum () const |
void | setEncryptionStartOffset (unsigned long encryptionStartOffset) |
unsigned long | getEncryptionStartOffset () const |
void | setEncryptionMaskBase (unsigned char encryptionMaskBase) |
unsigned char | getEncryptionMaskBase () const |
const WPXString & | getEncryptionPassword () const |
Private Attributes | |
unsigned char * | m_buffer |
WPXString | m_password |
unsigned long | m_encryptionStartOffset |
unsigned char | m_encryptionMaskBase |
WPXEncryption::WPXEncryption | ( | const char * | password, | |
const unsigned long | encryptionStartOffset = 0 | |||
) |
WPXEncryption::~WPXEncryption | ( | ) |
uint16_t WPXEncryption::getCheckSum | ( | ) | const |
unsigned char WPXEncryption::getEncryptionMaskBase | ( | ) | const [inline] |
Referenced by WP3ResourceFork::WP3ResourceFork().
const WPXString& WPXEncryption::getEncryptionPassword | ( | ) | const [inline] |
unsigned long WPXEncryption::getEncryptionStartOffset | ( | ) | const [inline] |
Referenced by WP3ResourceFork::WP3ResourceFork().
const unsigned char * WPXEncryption::readAndDecrypt | ( | WPXInputStream * | input, | |
unsigned long | numBytes, | |||
unsigned long & | numBytesRead | |||
) |
void WPXEncryption::setEncryptionMaskBase | ( | unsigned char | encryptionMaskBase | ) | [inline] |
Referenced by WP3ResourceFork::WP3ResourceFork().
void WPXEncryption::setEncryptionStartOffset | ( | unsigned long | encryptionStartOffset | ) | [inline] |
Referenced by WP3ResourceFork::WP3ResourceFork().
unsigned char* WPXEncryption::m_buffer [private] |
Referenced by readAndDecrypt(), and ~WPXEncryption().
unsigned char WPXEncryption::m_encryptionMaskBase [private] |
Referenced by getEncryptionMaskBase(), readAndDecrypt(), setEncryptionMaskBase(), and WPXEncryption().
unsigned long WPXEncryption::m_encryptionStartOffset [private] |
Referenced by getEncryptionStartOffset(), readAndDecrypt(), and setEncryptionStartOffset().
WPXString WPXEncryption::m_password [private] |
Referenced by getCheckSum(), getEncryptionPassword(), readAndDecrypt(), and WPXEncryption().