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 189 of file xestream.hxx.

Constructor & Destructor Documentation

XclExpBiff8Encrypter::XclExpBiff8Encrypter ( const XclExpRoot rRoot)
explicit
XclExpBiff8Encrypter::~XclExpBiff8Encrypter ( )

Definition at line 468 of file xestream.cxx.

Member Function Documentation

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

Definition at line 490 of file xestream.cxx.

References EncryptBytes().

Referenced by Encrypt().

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

Definition at line 497 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 505 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 529 of file xestream.cxx.

References Encrypt().

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

Definition at line 534 of file xestream.cxx.

References Encrypt().

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

Definition at line 539 of file xestream.cxx.

References Encrypt().

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

Definition at line 515 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 522 of file xestream.cxx.

References EncryptBytes().

void XclExpBiff8Encrypter::EncryptBytes ( SvStream rStrm,
::std::vector< sal_uInt8 > &  aBytes 
)
sal_uInt32 XclExpBiff8Encrypter::GetBlockPos ( std::size_t  nStrmPos)
staticprivate

Definition at line 569 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

Referenced by EncryptBytes().

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

Definition at line 484 of file xestream.cxx.

References mpnDocId.

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

Definition at line 574 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

Referenced by EncryptBytes().

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

Definition at line 478 of file xestream.cxx.

References mpnSalt.

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

Definition at line 472 of file xestream.cxx.

References mpnSaltDigest.

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

Definition at line 195 of file xestream.hxx.

References mbValid.

Member Data Documentation

::msfilter::MSCodec_Std97 XclExpBiff8Encrypter::maCodec
private

Definition at line 221 of file xestream.hxx.

Referenced by EncryptBytes(), and Init().

bool XclExpBiff8Encrypter::mbValid
private

Last known stream position.

Definition at line 227 of file xestream.hxx.

Referenced by Init(), and IsValid().

sal_uInt64 XclExpBiff8Encrypter::mnOldPos
private

Definition at line 226 of file xestream.hxx.

Referenced by EncryptBytes().

sal_uInt8 XclExpBiff8Encrypter::mpnDocId[16]
private

Crypto algorithm implementation.

Definition at line 222 of file xestream.hxx.

Referenced by GetDocId(), and Init().

sal_uInt8 XclExpBiff8Encrypter::mpnSalt[16]
private

Definition at line 223 of file xestream.hxx.

Referenced by GetSalt(), and Init().

sal_uInt8 XclExpBiff8Encrypter::mpnSaltDigest[16]
private

Definition at line 224 of file xestream.hxx.

Referenced by GetSaltDigest(), and Init().


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