WPXEncryption Class Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Member Functions | Private Attributes | List of all members
WPXEncryption Class Reference

`#include <WPXEncryption.h>`

## Public Member Functions
| WPXEncryption (const char *password, const unsigned long encryptionStartOffset=0)
| ~WPXEncryption ()
const unsigned char * | readAndDecrypt (librevenge::RVNGInputStream *input, unsigned long numBytes, unsigned long &numBytesRead)
unsigned short | getCheckSum () const
void | setEncryptionStartOffset (unsigned long encryptionStartOffset)
unsigned long | getEncryptionStartOffset () const
void | setEncryptionMaskBase (unsigned char encryptionMaskBase)
unsigned char | getEncryptionMaskBase () const
const librevenge::RVNGString & | getEncryptionPassword () const

## Private Member Functions
| WPXEncryption (const WPXEncryption &)
WPXEncryption & | operator= (const WPXEncryption &)

## Private Attributes
unsigned char * | m_buffer
librevenge::RVNGString | 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 short WPXEncryption::getCheckSum | ( |  | ) | const

Referenced by WP1Heuristics::isWP1FileFormat(), WP42Heuristics::isWP42FileFormat(), WP42Heuristics::verifyPassword(), WP1Heuristics::verifyPassword(), and libwpd::WPDocument::verifyPassword().

unsigned char WPXEncryption::getEncryptionMaskBase | ( |  | ) | const
| inline

Referenced by WP3ResourceFork::WP3ResourceFork().

const librevenge::RVNGString& WPXEncryption::getEncryptionPassword | ( |  | ) | const
| inline

unsigned long WPXEncryption::getEncryptionStartOffset | ( |  | ) | const
| inline

Referenced by WP3ResourceFork::WP3ResourceFork().

WPXEncryption& WPXEncryption::operator= | ( | const WPXEncryption & |  | ) |
| private

const unsigned char * WPXEncryption::readAndDecrypt | ( | librevenge::RVNGInputStream * | input,
|  | unsigned long | numBytes,
|  | unsigned long & | numBytesRead
| ) |  |

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

void WPXEncryption::setEncryptionMaskBase | ( | unsigned char | encryptionMaskBase | ) |
| inline

Referenced by WP3ResourceFork::WP3ResourceFork().

void WPXEncryption::setEncryptionStartOffset | ( | unsigned long | encryptionStartOffset | ) |
| inline

Referenced by WP3ResourceFork::WP3ResourceFork().

## Member Data Documentation

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().

librevenge::RVNGString WPXEncryption::m_password
| private

Referenced by getCheckSum(), getEncryptionPassword(), readAndDecrypt(), and WPXEncryption().

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

- WPXEncryption.h
- WPXEncryption.cpp