summaryrefslogtreecommitdiff
path: root/oox/qa
AgeCommit message (Collapse)AuthorFilesLines
2018-10-15loplugin:constfields in ooxNoel Grandin2-2/+2
Change-Id: I1e110d193ebfa30ab1ab0d85bfb6dc409e341439 Reviewed-on: https://gerrit.libreoffice.org/61728 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-07oox: Handle agile encryption info "reserved" field correctlyTomaž Vajngerl1-4/+0
The "reserved" filed is written fter the version number major, minor which is used to identify the encryption as agile. The "reserved" field must always have the value 0x00000040. This change writes the reserved filed correctly and when encryption and when decrypting it checks the value an potentially bails out if it desn't contain the expected value. Change-Id: I2045dc64e0c6bbb3318384e25deef2ba8f41b94c Reviewed-on: https://gerrit.libreoffice.org/57140 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-07-06oox: Agile encryption and data integrity verificationTomaž Vajngerl1-11/+270
This adds agile encryption for OOXML documents. Previously we always used the standard encryption used in MSO 2007 for max. compatibility, but new MSO versions (2010+) use the agile encryption, which allows more strong encryption methods (AES256 with SHA512). With this change we can now use do AES128 with SHA1 or AES256 with SHA512 encryption. In addition the agile encryption has data verification with HMAC hashing. With this change we also now write the data verification hash into the encrypted document and in addition also do data verification when opening / decrypting a document, so to make sure the document is not corrupted. Change-Id: Ib45d397df228c355941eefb76d51e5d6f8925470 Reviewed-on: https://gerrit.libreoffice.org/56974 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-07-06oox: Standard2007Engine - take size into account when decryptingTomaž Vajngerl1-2/+2
Change-Id: I3a28344d28136c9785a9476b490d296143abfacf Reviewed-on: https://gerrit.libreoffice.org/56973 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-07-06CryptoTools: add HMAC, move crypto impl. details to CryptoImplTomaž Vajngerl1-0/+65
Change-Id: I8edb24ee5d9595ef54bd49526b631baf8a7415b1 Reviewed-on: https://gerrit.libreoffice.org/56970 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-06-22oox: encryption/decryption test for Standard2007EngineTomaž Vajngerl1-0/+106
Change-Id: I8de25182c40004edffad4452179f191a75f130d9 Reviewed-on: https://gerrit.libreoffice.org/56300 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-01-12More loplugin:cstylecast: ooxStephan Bergmann2-8/+8
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I8fd61e3220a4b9e08d4f97acde28600f31d448ca
2017-11-15Don't pollute /tmp with vba_debug* filesStephan Bergmann1-9/+25
...put them at workdir/CppunitTest/oox_vba_compression.test.user/debug/ instead. Change-Id: I067a82c05e2f91969d70cb582d69c4c1de13951c
2017-10-23loplugin:includeform: ooxStephan Bergmann1-2/+2
Change-Id: I9f1cc9940f5b31370394f789ebfaddfd6d30ca61
2017-06-26loplugin:oncevar in oox..saxNoel Grandin1-1/+1
Change-Id: I0fee8bcddaeea48335e3be05761d2ad2c45020e2 Reviewed-on: https://gerrit.libreoffice.org/39238 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-03-10These tests can just derive from plain CppUnit::TestFixtureStephan Bergmann2-31/+4
...and then no longer need to override any base class setUp/tearDown Change-Id: Iaea19dfb341325bb45062d0ac0b5fa1eed0d34e0
2016-03-10Extract Directories from BootstrapFixtureBaseStephan Bergmann1-14/+14
(as some tests derive from the latter only for the Directories part, not for the setUp/tearDown overrides: those tests will be cleaned up next) Change-Id: Ib6b78eea868b8bc21d4cc6e8fd9e1d025deca05f Reviewed-on: https://gerrit.libreoffice.org/23078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-02-19tdf#97703 Removed a few redundant calls to setUp and tearDownJaskaran1-1/+0
Calls to CppUnit::TextFixture::setUp and CppUnit::TextFixture::tearDown have been removed. I hope that saves a few milliseconds of build time :) Change-Id: I611db2f5c5673ab86bf8f92beb4f6e8a70443b34 Reviewed-on: https://gerrit.libreoffice.org/22496 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin1-0/+1
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27sal_uIntPtr to sal_uInt64, sal_uLong to sal_Size for streamsMatteo Casalin1-14/+14
Change-Id: I062f1f6c5b20ca47734a9a3cd1a229d51763a206
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2-4/+4
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-08oox: loplugin:unreffunMiklos Vajna1-0/+4
Change-Id: I8ee7d5690495bb089ab57da0d7ad6e31bb2154b7
2015-10-08add test for projkey generationMarkus Mohrhard1-1/+10
Change-Id: I42957abbdcf396830713d7ca4eb7539e6c110e11
2015-10-08add initial tests for vba encryptionMarkus Mohrhard1-0/+88
Change-Id: Ic6128ecade39e8947863c9162523e0d9690f0026
2015-09-10include algorithm for std::minCaolán McNamara1-0/+1
Change-Id: I7b57b8f1c86b3ed1e31467fc7c094b3520d4e74e
2015-09-10loplugin:cstylecastNoel Grandin1-14/+14
Change-Id: I237ee6cf764d5bca9147e6d5e0bbb1162ece06ac
2015-09-10add remaining test from spec for vba compressionMarkus Mohrhard3-1/+27
That test is testing the case that a sequence can not be compressed at all. Change-Id: I98d1065919acc9688d713ea09bf578c325b1f821
2015-09-10add another test from the VBA spec for the compression codeMarkus Mohrhard3-0/+26
Change-Id: I5368e30bbb383621153c31ae8705cff6df7dad90
2015-09-10add test from the VBA spec for the compression algorithmMarkus Mohrhard3-0/+30
Change-Id: I41d5aca8940e34b41e2cc70a72b6e076707bfac6
2015-09-10add complext vba compression testMarkus Mohrhard3-0/+26
This is based on my real world test document. Change-Id: I6e6c38aa1ced7fe836a8926c26aa7d488d44e6d9
2015-09-10fix some of the vba compression testsMarkus Mohrhard7-3/+30
Change-Id: Icfb9b63206fe22641ebdef76619fe70e1f5d5e04
2015-09-10add one more test for vba compressionMarkus Mohrhard3-12/+52
Change-Id: Iba6b4e7b5d26ac7943f72e2a5b3d5d2dc4fc95fd
2015-09-10add first vba compression testMarkus Mohrhard3-0/+82
Change-Id: I9e3abebb0ac932b46f7fc96cd37d39023b783af2
2014-09-23Add unit test for oox::TokenMapDavid Ostrovsky1-0/+54
Change-Id: Iced083868a84fd9fbb97ad91dfc0acbf5b69b766 Reviewed-on: https://gerrit.libreoffice.org/11559 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>