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, rtl_TextEncoding eTextEncoding)
 
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
 
rtl_TextEncoding meTextEncoding
 

Detailed Description

Definition at line 118 of file vbaexport.hxx.

Constructor & Destructor Documentation

◆ VBAEncryption()

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

Definition at line 368 of file vbaexport.cxx.

References length, mnSeed, and pData.

Member Function Documentation

◆ calculateProjKey()

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

Definition at line 401 of file vbaexport.cxx.

References character, namespaces::i, and n.

◆ write()

void VBAEncryption::write ( )

◆ writeDataEnc()

void VBAEncryption::writeDataEnc ( )
private

◆ writeDataLengthEnc()

void VBAEncryption::writeDataLengthEnc ( )
private

◆ writeIgnoredEnc()

void VBAEncryption::writeIgnoredEnc ( )
private

◆ writeProjKeyEnc()

void VBAEncryption::writeProjKeyEnc ( )
private

◆ writeSeed()

void VBAEncryption::writeSeed ( )
private

Definition at line 389 of file vbaexport.cxx.

References meTextEncoding, mnSeed, and mrEncryptedData.

Referenced by write().

◆ writeVersionEnc()

void VBAEncryption::writeVersionEnc ( )
private

Definition at line 394 of file vbaexport.cxx.

References meTextEncoding, mnSeed, mnVersionEnc, and mrEncryptedData.

Referenced by write().

Member Data Documentation

◆ meTextEncoding

rtl_TextEncoding VBAEncryption::meTextEncoding
private

◆ mnEncryptedByte1

sal_uInt8 VBAEncryption::mnEncryptedByte1
private

Definition at line 136 of file vbaexport.hxx.

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

◆ mnEncryptedByte2

sal_uInt8 VBAEncryption::mnEncryptedByte2
private

Definition at line 137 of file vbaexport.hxx.

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

◆ mnIgnoredLength

sal_uInt8 VBAEncryption::mnIgnoredLength
private

Definition at line 139 of file vbaexport.hxx.

Referenced by writeIgnoredEnc().

◆ mnLength

const sal_uInt16 VBAEncryption::mnLength
private

Definition at line 133 of file vbaexport.hxx.

Referenced by writeDataEnc(), and writeDataLengthEnc().

◆ mnProjKey

sal_Unicode VBAEncryption::mnProjKey
private

Definition at line 138 of file vbaexport.hxx.

Referenced by writeProjKeyEnc().

◆ mnSeed

sal_uInt8 VBAEncryption::mnSeed
private

◆ mnUnencryptedByte1

sal_uInt8 VBAEncryption::mnUnencryptedByte1
private

Definition at line 135 of file vbaexport.hxx.

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

◆ mnVersionEnc

sal_uInt8 VBAEncryption::mnVersionEnc
private

Definition at line 142 of file vbaexport.hxx.

Referenced by writeProjKeyEnc(), and writeVersionEnc().

◆ mpData

const sal_uInt8* VBAEncryption::mpData
private

Definition at line 132 of file vbaexport.hxx.

Referenced by writeDataEnc().

◆ mrEncryptedData

SvStream& VBAEncryption::mrEncryptedData
private

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