summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/DocumentDecryption.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx
index f93f9031f260..0209f3d24ba5 100644
--- a/oox/source/crypto/DocumentDecryption.cxx
+++ b/oox/source/crypto/DocumentDecryption.cxx
@@ -191,9 +191,14 @@ bool DocumentDecryption::generateEncryptionKey(const OUString& rPassword)
bool DocumentDecryption::readAgileEncryptionInfo(Reference< XInputStream >& xInputStream)
{
- AgileEngine* engine = new AgileEngine();
+ AgileEngine* engine = new AgileEngine;
mEngine.reset(engine);
AgileEncryptionInfo& info = engine->getInfo();
+ info.spinCount = 0;
+ info.saltSize = 0;
+ info.keyBits = 0;
+ info.hashSize = 0;
+ info.blockSize = 0;
Reference<XFastDocumentHandler> xFastDocumentHandler( new AgileDocumentHandler(info) );
Reference<XFastTokenHandler> xFastTokenHandler ( new AgileTokenHandler );