#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 Member Functions | |
WPXEncryption (const WPXEncryption &) | |
WPXEncryption & | operator= (const WPXEncryption &) |
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 | ( | ) |
|
private |
uint16_t WPXEncryption::getCheckSum | ( | ) | const |
|
inline |
Referenced by WP3ResourceFork::WP3ResourceFork().
|
inline |
|
inline |
Referenced by WP3ResourceFork::WP3ResourceFork().
|
private |
const unsigned char * WPXEncryption::readAndDecrypt | ( | WPXInputStream * | input, |
unsigned long | numBytes, | ||
unsigned long & | numBytesRead | ||
) |
|
inline |
Referenced by WP3ResourceFork::WP3ResourceFork().
|
inline |
Referenced by WP3ResourceFork::WP3ResourceFork().
|
private |
Referenced by readAndDecrypt(), and ~WPXEncryption().
|
private |
Referenced by getEncryptionMaskBase(), readAndDecrypt(), setEncryptionMaskBase(), and WPXEncryption().
|
private |
Referenced by getEncryptionStartOffset(), readAndDecrypt(), and setEncryptionStartOffset().
|
private |
Referenced by getCheckSum(), getEncryptionPassword(), readAndDecrypt(), and WPXEncryption().