LibreOffice Module oox (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
VBAEncryption Class Reference

#include <vbaexport.hxx>

Collaboration diagram for VBAEncryption:
[legend]

Public Member Functions

 VBAEncryption (const sal_uInt8 *pData, const sal_uInt16 nLength, SvStream &rEncryptedData, sal_uInt8 nProjKey)
 
void write ()
 

Static Public Member Functions

static sal_uInt8 calculateProjKey (const OUString &rString)
 

Private Member Functions

void writeSeed ()
 
void writeVersionEnc ()
 
void writeProjKeyEnc ()
 
void writeIgnoredEnc ()
 
void writeDataLengthEnc ()
 
void writeDataEnc ()
 

Private Attributes

const sal_uInt8mpData
 
const sal_uInt16 mnLength
 
SvStreammrEncryptedData
 
sal_uInt8 mnUnencryptedByte1
 
sal_uInt8 mnEncryptedByte1
 
sal_uInt8 mnEncryptedByte2
 
sal_Unicode mnProjKey
 
sal_uInt8 mnIgnoredLength
 
sal_uInt8 mnSeed
 
sal_uInt8 mnVersionEnc
 

Detailed Description

Definition at line 117 of file vbaexport.hxx.

Constructor & Destructor Documentation

VBAEncryption::VBAEncryption ( const sal_uInt8 pData,
const sal_uInt16  nLength,
SvStream rEncryptedData,
sal_uInt8  nProjKey 
)

Definition at line 373 of file vbaexport.cxx.

References mnSeed.

Member Function Documentation

sal_uInt8 VBAEncryption::calculateProjKey ( const OUString &  rString)
static

Definition at line 403 of file vbaexport.cxx.

References character, namespaces::i, and n.

void VBAEncryption::write ( )
void VBAEncryption::writeDataEnc ( )
private
void VBAEncryption::writeDataLengthEnc ( )
private

Definition at line 440 of file vbaexport.cxx.

References namespaces::i, mnEncryptedByte1, mnEncryptedByte2, mnLength, mnUnencryptedByte1, and mrEncryptedData.

Referenced by write().

void VBAEncryption::writeIgnoredEnc ( )
private
void VBAEncryption::writeProjKeyEnc ( )
private
void VBAEncryption::writeSeed ( )
private

Definition at line 391 of file vbaexport.cxx.

References mnSeed, and mrEncryptedData.

Referenced by write().

void VBAEncryption::writeVersionEnc ( )
private

Definition at line 396 of file vbaexport.cxx.

References mnSeed, mnVersionEnc, and mrEncryptedData.

Referenced by write().

Member Data Documentation

sal_uInt8 VBAEncryption::mnEncryptedByte1
private

Definition at line 134 of file vbaexport.hxx.

Referenced by writeDataEnc(), writeDataLengthEnc(), writeIgnoredEnc(), and writeProjKeyEnc().

sal_uInt8 VBAEncryption::mnEncryptedByte2
private

Definition at line 135 of file vbaexport.hxx.

Referenced by writeDataEnc(), writeDataLengthEnc(), writeIgnoredEnc(), and writeProjKeyEnc().

sal_uInt8 VBAEncryption::mnIgnoredLength
private

Definition at line 137 of file vbaexport.hxx.

Referenced by writeIgnoredEnc().

const sal_uInt16 VBAEncryption::mnLength
private

Definition at line 131 of file vbaexport.hxx.

Referenced by writeDataEnc(), and writeDataLengthEnc().

sal_Unicode VBAEncryption::mnProjKey
private

Definition at line 136 of file vbaexport.hxx.

Referenced by writeProjKeyEnc().

sal_uInt8 VBAEncryption::mnSeed
private
sal_uInt8 VBAEncryption::mnUnencryptedByte1
private

Definition at line 133 of file vbaexport.hxx.

Referenced by writeDataEnc(), writeDataLengthEnc(), writeIgnoredEnc(), and writeProjKeyEnc().

sal_uInt8 VBAEncryption::mnVersionEnc
private

Definition at line 140 of file vbaexport.hxx.

Referenced by writeProjKeyEnc(), and writeVersionEnc().

const sal_uInt8* VBAEncryption::mpData
private

Definition at line 130 of file vbaexport.hxx.

Referenced by writeDataEnc().

SvStream& VBAEncryption::mrEncryptedData
private

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