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 466 of file xestream.cxx.
References XclExpRoot::GenerateDefaultEncryptionData(), XclExpRoot::GetEncryptionData(), Init(), and STREAM_SEEK_TO_END.
XclExpBiff8Encrypter::~XclExpBiff8Encrypter | ( | ) |
Definition at line 477 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
double | fValue | ||
) |
Definition at line 534 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
float | fValue | ||
) |
Definition at line 527 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_Int16 | nData | ||
) |
Definition at line 546 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_Int32 | nData | ||
) |
Definition at line 551 of file xestream.cxx.
Definition at line 541 of file xestream.cxx.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_uInt16 | nData | ||
) |
Definition at line 505 of file xestream.cxx.
References EncryptBytes(), and rStrm.
void XclExpBiff8Encrypter::Encrypt | ( | SvStream & | rStrm, |
sal_uInt32 | nData | ||
) |
Definition at line 515 of file xestream.cxx.
References EncryptBytes(), and rStrm.
Definition at line 499 of file xestream.cxx.
References EncryptBytes(), and rStrm.
Referenced by Encrypt().
Definition at line 591 of file xestream.cxx.
References msfilter::MSCodec97::Encode(), EXC_ENCR_BLOCKSIZE, GetBlockPos(), GetOffsetInBlock(), i, msfilter::MSCodec_Std97::InitCipher(), maCodec, mnOldPos, nPos, rStrm, SAL_INFO, msfilter::MSCodec97::Skip(), SvStream::Tell(), and SvStream::WriteBytes().
Referenced by Encrypt().
|
staticprivate |
Definition at line 581 of file xestream.cxx.
References EXC_ENCR_BLOCKSIZE.
Referenced by EncryptBytes().
void XclExpBiff8Encrypter::GetDocId | ( | sal_uInt8 | pnDocId[16] | ) | const |
Definition at line 493 of file xestream.cxx.
References mpnDocId.
|
staticprivate |
Definition at line 586 of file xestream.cxx.
References EXC_ENCR_BLOCKSIZE.
Referenced by EncryptBytes().
void XclExpBiff8Encrypter::GetSalt | ( | sal_uInt8 | pnSalt[16] | ) | const |
Definition at line 487 of file xestream.cxx.
References mpnSalt.
void XclExpBiff8Encrypter::GetSaltDigest | ( | sal_uInt8 | pnSaltDigest[16] | ) | const |
Definition at line 481 of file xestream.cxx.
References mpnSaltDigest.
|
private |
Definition at line 556 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().