XclExpBiff8Encrypter Class Reference

#include <xestream.hxx>

Collaboration diagram for XclExpBiff8Encrypter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 XclExpBiff8Encrypter (const XclExpRoot &rRoot, const sal_uInt8 nDocId[16], const sal_uInt8 nSalt[16])
 ~XclExpBiff8Encrypter ()
bool IsValid () const
void GetSaltDigest (sal_uInt8 nSaltDigest[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)
 XclExpBiff8Encrypter (const XclExpRoot &rRoot, const sal_uInt8 nDocId[16], const sal_uInt8 nSalt[16])
 ~XclExpBiff8Encrypter ()
bool IsValid () const
void GetSaltDigest (sal_uInt8 nSaltDigest[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 String &aPass, const sal_uInt8 nDocId[16], const sal_uInt8 nSalt[16])
sal_uInt32 GetBlockPos (sal_Size nStrmPos) const
sal_uInt16 GetOffsetInBlock (sal_Size nStrmPos) const
void Init (const String &aPass, const sal_uInt8 nDocId[16], const sal_uInt8 nSalt[16])
sal_uInt32 GetBlockPos (sal_Size nStrmPos) const
sal_uInt16 GetOffsetInBlock (sal_Size nStrmPos) const

Private Attributes

::svx::MSCodec_Std97 maCodec
sal_uInt16 mnPassw [16]
 Crypto algorithm implementation.
sal_uInt8 mnDocId [16]
 Cached password data for copy construction.
sal_uInt8 mnSaltDigest [16]
 Cached document ID for copy construction.
const XclExpRootmrRoot
sal_Size mnOldPos
bool mbValid
 Last known stream position.


Detailed Description

Definition at line 220 of file inc/xestream.hxx.


Constructor & Destructor Documentation

XclExpBiff8Encrypter::XclExpBiff8Encrypter ( const XclExpRoot rRoot,
const sal_uInt8  nDocId[16],
const sal_uInt8  nSalt[16] 
) [explicit]

Definition at line 487 of file xestream.cxx.

References XclRoot::GetDefaultPassword(), XclExpRoot::GetPassword(), and Init().

XclExpBiff8Encrypter::~XclExpBiff8Encrypter (  ) 

Definition at line 500 of file xestream.cxx.

XclExpBiff8Encrypter::XclExpBiff8Encrypter ( const XclExpRoot rRoot,
const sal_uInt8  nDocId[16],
const sal_uInt8  nSalt[16] 
) [explicit]

XclExpBiff8Encrypter::~XclExpBiff8Encrypter (  ) 


Member Function Documentation

bool XclExpBiff8Encrypter::IsValid ( void   )  const

Definition at line 504 of file xestream.cxx.

References mbValid.

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

Definition at line 509 of file xestream.cxx.

References mnSaltDigest.

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

Definition at line 514 of file xestream.cxx.

References EncryptBytes().

Referenced by Encrypt().

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

Definition at line 521 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 529 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 553 of file xestream.cxx.

References Encrypt().

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

Definition at line 558 of file xestream.cxx.

References Encrypt().

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

Definition at line 563 of file xestream.cxx.

References Encrypt().

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

Definition at line 539 of file xestream.cxx.

References EncryptBytes().

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

Definition at line 546 of file xestream.cxx.

References EncryptBytes().

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

Referenced by Encrypt().

void XclExpBiff8Encrypter::Init ( const String &  aPass,
const sal_uInt8  nDocId[16],
const sal_uInt8  nSalt[16] 
) [private]

sal_uInt32 XclExpBiff8Encrypter::GetBlockPos ( sal_Size  nStrmPos  )  const [private]

Definition at line 600 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

sal_uInt16 XclExpBiff8Encrypter::GetOffsetInBlock ( sal_Size  nStrmPos  )  const [private]

Definition at line 605 of file xestream.cxx.

References EXC_ENCR_BLOCKSIZE.

bool XclExpBiff8Encrypter::IsValid (  )  const

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

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

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

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

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

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

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

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

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

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

void XclExpBiff8Encrypter::Init ( const String &  aPass,
const sal_uInt8  nDocId[16],
const sal_uInt8  nSalt[16] 
) [private]

sal_uInt32 XclExpBiff8Encrypter::GetBlockPos ( sal_Size  nStrmPos  )  const [private]

sal_uInt16 XclExpBiff8Encrypter::GetOffsetInBlock ( sal_Size  nStrmPos  )  const [private]


Member Data Documentation

Definition at line 252 of file inc/xestream.hxx.

Referenced by Init().

sal_uInt16 XclExpBiff8Encrypter::mnPassw [private]

Crypto algorithm implementation.

Definition at line 253 of file inc/xestream.hxx.

Referenced by Init().

sal_uInt8 XclExpBiff8Encrypter::mnDocId [private]

Cached password data for copy construction.

Definition at line 254 of file inc/xestream.hxx.

Referenced by Init().

Cached document ID for copy construction.

Definition at line 255 of file inc/xestream.hxx.

Referenced by GetSaltDigest(), and Init().

Definition at line 257 of file inc/xestream.hxx.

sal_Size XclExpBiff8Encrypter::mnOldPos [private]

Definition at line 258 of file inc/xestream.hxx.

Last known stream position.

Definition at line 259 of file inc/xestream.hxx.

Referenced by Init(), and IsValid().


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

Generated on Thu Apr 29 18:49:17 2010 for ooo-build Module sc (ooo/OOO320_m15) by  doxygen 1.5.6