LibreOffice Module sc (master) 1
|
#include <xestream.hxx>
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... | |
Definition at line 190 of file xestream.hxx.
|
explicit |
Definition at line 465 of file xestream.cxx.
References XclExpRoot::GenerateDefaultEncryptionData(), XclExpRoot::GetEncryptionData(), Init(), and STREAM_SEEK_TO_END.
XclExpBiff8Encrypter::~XclExpBiff8Encrypter | ( | ) |
Definition at line 476 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
double | fValue | ||
) |
Definition at line 533 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
float | fValue | ||
) |
Definition at line 526 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_Int16 | nData | ||
) |
Definition at line 545 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_Int32 | nData | ||
) |
Definition at line 550 of file xestream.cxx.
Definition at line 540 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_uInt16 | nData | ||
) |
Definition at line 504 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_uInt32 | nData | ||
) |
Definition at line 514 of file xestream.cxx.
References EncryptBytes(), and rStrm.
Definition at line 498 of file xestream.cxx.
References EncryptBytes(), and rStrm.
Referenced by Encrypt().
Definition at line 590 of file xestream.cxx.
References msfilter::MSCodec97::Encode(), EXC_ENCR_BLOCKSIZE, GetBlockPos(), GetOffsetInBlock(), i, msfilter::MSCodec_Std97::InitCipher(), maCodec, mnOldPos, nPos, rStrm, msfilter::MSCodec97::Skip(), SvStream::Tell(), and SvStream::WriteBytes().
Referenced by Encrypt().
|
staticprivate |
Definition at line 580 of file xestream.cxx.
References EXC_ENCR_BLOCKSIZE.
Referenced by EncryptBytes().
void XclExpBiff8Encrypter::GetDocId | ( | sal_uInt8 | pnDocId[16] | ) | const |
Definition at line 492 of file xestream.cxx.
References mpnDocId.
|
staticprivate |
Definition at line 585 of file xestream.cxx.
References EXC_ENCR_BLOCKSIZE.
Referenced by EncryptBytes().
void XclExpBiff8Encrypter::GetSalt | ( | sal_uInt8 | pnSalt[16] | ) | const |
Definition at line 486 of file xestream.cxx.
References mpnSalt.
void XclExpBiff8Encrypter::GetSaltDigest | ( | sal_uInt8 | pnSaltDigest[16] | ) | const |
Definition at line 480 of file xestream.cxx.
References mpnSaltDigest.
|
private |
Definition at line 555 of file xestream.cxx.
References msfilter::MSCodec_Std97::CreateSaltDigest(), msfilter::MSCodec97::GetDocId(), msfilter::MSCodec97::InitCodec(), maCodec, mbValid, mpnDocId, mpnSalt, mpnSaltDigest, and msfilter::MSCodec97::VerifyKey().
Referenced by XclExpBiff8Encrypter().
|
inline |
Definition at line 196 of file xestream.hxx.
References mbValid.
|
private |
Definition at line 222 of file xestream.hxx.
Referenced by EncryptBytes(), and Init().
|
private |
Last known stream position.
Definition at line 228 of file xestream.hxx.
|
private |
Definition at line 227 of file xestream.hxx.
Referenced by EncryptBytes().
|
private |
Crypto algorithm implementation.
Definition at line 223 of file xestream.hxx.
Referenced by GetDocId(), and Init().
|
private |
Definition at line 224 of file xestream.hxx.
|
private |
Definition at line 225 of file xestream.hxx.
Referenced by GetSaltDigest(), and Init().