WPXEncryption Class Reference

#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 &)
WPXEncryptionoperator= (const WPXEncryption &)

Private Attributes

unsigned char * m_buffer
WPXString m_password
unsigned long m_encryptionStartOffset
unsigned char m_encryptionMaskBase

Constructor & Destructor Documentation

WPXEncryption::WPXEncryption ( const char *  password,
const unsigned long  encryptionStartOffset = 0 
)
WPXEncryption::~WPXEncryption ( )
WPXEncryption::WPXEncryption ( const WPXEncryption )
private

Member Function Documentation

unsigned char WPXEncryption::getEncryptionMaskBase ( ) const
inline
const WPXString& WPXEncryption::getEncryptionPassword ( ) const
inline
unsigned long WPXEncryption::getEncryptionStartOffset ( ) const
inline
WPXEncryption& WPXEncryption::operator= ( const WPXEncryption )
private
const unsigned char * WPXEncryption::readAndDecrypt ( WPXInputStream *  input,
unsigned long  numBytes,
unsigned long &  numBytesRead 
)

Referenced by readU16(), readU32(), and readU8().

void WPXEncryption::setEncryptionMaskBase ( unsigned char  encryptionMaskBase)
inline
void WPXEncryption::setEncryptionStartOffset ( unsigned long  encryptionStartOffset)
inline

Member Data Documentation

unsigned char* WPXEncryption::m_buffer
private

Referenced by readAndDecrypt(), and ~WPXEncryption().

unsigned char WPXEncryption::m_encryptionMaskBase
private
unsigned long WPXEncryption::m_encryptionStartOffset
private
WPXString WPXEncryption::m_password
private

The documentation for this class was generated from the following files:

Generated for libwpd by doxygen 1.8.1.2