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

#include <xestream.hxx>

Collaboration diagram for XclExpBiff8Encrypter:
[legend]

Public Member Functions

 XclExpBiff8Encrypter (const XclExpRoot &rRoot)
 
 ~XclExpBiff8Encrypter ()
 
bool IsValid () const
 
void GetSaltDigest (sal_uInt8 pnSaltDigest[16]) const
 
void GetSalt (sal_uInt8 pnSalt[16]) const
 
void GetDocId (sal_uInt8 pnDocId[16]) const
 
void Encrypt (SvStream &rStrm, sal_uInt8 nData)
 
void Encrypt (SvStream &rStrm, sal_uInt16 nData)
 
void Encrypt (SvStream &rStrm, sal_uInt32 nData)
 
void Encrypt (SvStream &rStrm, sal_Int8 nData)
 
void Encrypt (SvStream &rStrm, sal_Int16 nData)
 
void Encrypt (SvStream &rStrm, sal_Int32 nData)
 
void Encrypt (SvStream &rStrm, float fValue)
 
void Encrypt (SvStream &rStrm, double fValue)
 
void EncryptBytes (SvStream &rStrm, ::std::vector< sal_uInt8 > &aBytes)
 

Private Member Functions

void Init (const css::uno::Sequence< css::beans::NamedValue > &aEncryptionData)
 

Static Private Member Functions

static sal_uInt32 GetBlockPos (std::size_t nStrmPos)
 
static sal_uInt16 GetOffsetInBlock (std::size_t nStrmPos)
 

Private Attributes

::msfilter::MSCodec_Std97 maCodec
 
sal_uInt8 mpnDocId [16]
 Crypto algorithm implementation. More...
 
sal_uInt8 mpnSalt [16]
 
sal_uInt8 mpnSaltDigest [16]
 
sal_uInt64 mnOldPos
 
bool mbValid
 Last known stream position. More...
 

Detailed Description

Definition at line 190 of file xestream.hxx.

Constructor & Destructor Documentation

◆ XclExpBiff8Encrypter()

XclExpBiff8Encrypter::XclExpBiff8Encrypter ( const XclExpRoot rRoot)
explicit

◆ ~XclExpBiff8Encrypter()

XclExpBiff8Encrypter::~XclExpBiff8Encrypter ( )

Definition at line 477 of file xestream.cxx.

Member Function Documentation

◆ Encrypt() [1/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
double  fValue 
)

Definition at line 534 of file xestream.cxx.

References EncryptBytes(), and rStrm.

◆ Encrypt() [2/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
float  fValue 
)

Definition at line 527 of file xestream.cxx.

References EncryptBytes(), and rStrm.

◆ Encrypt() [3/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_Int16  nData 
)

Definition at line 546 of file xestream.cxx.

References Encrypt(), and rStrm.

◆ Encrypt() [4/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_Int32  nData 
)

Definition at line 551 of file xestream.cxx.

References Encrypt(), and rStrm.

◆ Encrypt() [5/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_Int8  nData 
)

Definition at line 541 of file xestream.cxx.

References Encrypt(), and rStrm.

◆ Encrypt() [6/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_uInt16  nData 
)

Definition at line 505 of file xestream.cxx.

References EncryptBytes(), and rStrm.

◆ Encrypt() [7/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_uInt32  nData 
)

Definition at line 515 of file xestream.cxx.

References EncryptBytes(), and rStrm.

◆ Encrypt() [8/8]

void XclExpBiff8Encrypter::Encrypt ( SvStream rStrm,
sal_uInt8  nData 
)

Definition at line 499 of file xestream.cxx.

References EncryptBytes(), and rStrm.

Referenced by Encrypt().

◆ EncryptBytes()

void XclExpBiff8Encrypter::EncryptBytes ( SvStream rStrm,
::std::vector< sal_uInt8 > &  aBytes 
)

◆ GetBlockPos()

sal_uInt32 XclExpBiff8Encrypter::GetBlockPos ( std::size_t  nStrmPos)
staticprivate

Definition at line 581 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

Referenced by EncryptBytes().

◆ GetDocId()

void XclExpBiff8Encrypter::GetDocId ( sal_uInt8  pnDocId[16]) const

Definition at line 493 of file xestream.cxx.

References mpnDocId.

◆ GetOffsetInBlock()

sal_uInt16 XclExpBiff8Encrypter::GetOffsetInBlock ( std::size_t  nStrmPos)
staticprivate

Definition at line 586 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

Referenced by EncryptBytes().

◆ GetSalt()

void XclExpBiff8Encrypter::GetSalt ( sal_uInt8  pnSalt[16]) const

Definition at line 487 of file xestream.cxx.

References mpnSalt.

◆ GetSaltDigest()

void XclExpBiff8Encrypter::GetSaltDigest ( sal_uInt8  pnSaltDigest[16]) const

Definition at line 481 of file xestream.cxx.

References mpnSaltDigest.

◆ Init()

void XclExpBiff8Encrypter::Init ( const css::uno::Sequence< css::beans::NamedValue > &  aEncryptionData)
private

◆ IsValid()

bool XclExpBiff8Encrypter::IsValid ( ) const
inline

Definition at line 196 of file xestream.hxx.

References mbValid.

Member Data Documentation

◆ maCodec

::msfilter::MSCodec_Std97 XclExpBiff8Encrypter::maCodec
private

Definition at line 222 of file xestream.hxx.

Referenced by EncryptBytes(), and Init().

◆ mbValid

bool XclExpBiff8Encrypter::mbValid
private

Last known stream position.

Definition at line 228 of file xestream.hxx.

Referenced by Init(), and IsValid().

◆ mnOldPos

sal_uInt64 XclExpBiff8Encrypter::mnOldPos
private

Definition at line 227 of file xestream.hxx.

Referenced by EncryptBytes().

◆ mpnDocId

sal_uInt8 XclExpBiff8Encrypter::mpnDocId[16]
private

Crypto algorithm implementation.

Definition at line 223 of file xestream.hxx.

Referenced by GetDocId(), and Init().

◆ mpnSalt

sal_uInt8 XclExpBiff8Encrypter::mpnSalt[16]
private

Definition at line 224 of file xestream.hxx.

Referenced by GetSalt(), and Init().

◆ mpnSaltDigest

sal_uInt8 XclExpBiff8Encrypter::mpnSaltDigest[16]
private

Definition at line 225 of file xestream.hxx.

Referenced by GetSaltDigest(), and Init().


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