LibreOffice Module oox (master) 1
|
#include <DocumentDecryption.hxx>
Public Member Functions | |
DocumentDecryption (css::uno::Reference< css::uno::XComponentContext > xContext, oox::ole::OleStorage &rOleStorage) | |
bool | decrypt (const css::uno::Reference< css::io::XStream > &xDocumentStream) |
bool | readEncryptionInfo () |
bool | generateEncryptionKey (const OUString &rPassword) |
css::uno::Sequence< css::beans::NamedValue > | createEncryptionData (const OUString &rPassword) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
oox::ole::OleStorage & | mrOleStorage |
css::uno::Sequence< css::beans::NamedValue > | maStreamsSequence |
css::uno::Reference< css::packages::XPackageEncryption > | mxPackageEncryption |
Definition at line 31 of file DocumentDecryption.hxx.
oox::crypto::DocumentDecryption::DocumentDecryption | ( | css::uno::Reference< css::uno::XComponentContext > | xContext, |
oox::ole::OleStorage & | rOleStorage | ||
) |
Definition at line 55 of file DocumentDecryption.cxx.
References comphelper::SequenceAsHashMap::getAsConstNamedValueList(), maStreamsSequence, mrOleStorage, mxContext, oox::StorageBase::openInputStream(), oox::BinaryXInputStream::readData(), SAL_WARN, oox::BinaryXSeekableStream::size(), and xStream.
uno::Sequence< beans::NamedValue > oox::crypto::DocumentDecryption::createEncryptionData | ( | const OUString & | rPassword | ) |
Definition at line 185 of file DocumentDecryption.cxx.
References mxPackageEncryption.
bool oox::crypto::DocumentDecryption::decrypt | ( | const css::uno::Reference< css::io::XStream > & | xDocumentStream | ) |
Definition at line 193 of file DocumentDecryption.cxx.
References oox::StorageBase::isStorage(), mrOleStorage, mxPackageEncryption, and oox::StorageBase::openInputStream().
Referenced by oox::core::FilterDetect::extractUnencryptedPackage().
bool oox::crypto::DocumentDecryption::generateEncryptionKey | ( | const OUString & | rPassword | ) |
Definition at line 88 of file DocumentDecryption.cxx.
References mxPackageEncryption.
bool oox::crypto::DocumentDecryption::readEncryptionInfo | ( | ) |
Definition at line 95 of file DocumentDecryption.cxx.
References aArguments, oox::BinaryStreamBase::getRemaining(), namespaces::i, oox::BinaryStreamBase::isEof(), oox::StorageBase::isStorage(), maStreamsSequence, mrOleStorage, mxContext, mxPackageEncryption, oox::StorageBase::openInputStream(), oox::BinaryInputStream::readuInt32(), oox::BinaryInputStream::readUnicodeArray(), SAL_WARN, SAL_WARN_IF, and oox::BinaryXInputStream::skip().
Referenced by oox::core::FilterDetect::extractUnencryptedPackage().
|
private |
Definition at line 36 of file DocumentDecryption.hxx.
Referenced by DocumentDecryption(), and readEncryptionInfo().
|
private |
Definition at line 35 of file DocumentDecryption.hxx.
Referenced by decrypt(), DocumentDecryption(), and readEncryptionInfo().
|
private |
Definition at line 34 of file DocumentDecryption.hxx.
Referenced by readEncryptionInfo().
|
private |
Definition at line 37 of file DocumentDecryption.hxx.
Referenced by createEncryptionData(), decrypt(), generateEncryptionKey(), and readEncryptionInfo().