History log of /AOO42X/main/oox/source/core/encryption.cxx (Results 1 – 5 of 5)
Revision Date Author Comments
# b1c5455d 30-Jul-2025 John Bampton <jbampton@users.noreply.github.com>

pre-commit auto remove trailing whitespace from cxx files (#383)

Another big auto clean up. So many lines !!

Another one bites the dust

https://www.youtube.com/watch?v=rY0WxgSXdEE

Co-authored-by:

pre-commit auto remove trailing whitespace from cxx files (#383)

Another big auto clean up. So many lines !!

Another one bites the dust

https://www.youtube.com/watch?v=rY0WxgSXdEE

Co-authored-by: Matthias Seidel <mseidel@apache.org>
(cherry picked from commit cf6516809c57e1bb0a940545cca99cdad54d4ce2)

show more ...


# 31bd0d21 17-Mar-2024 Damjan Jovanovic <damjan@apache.org>

Don't allow calls to OpenSSLCipher::blockSize() before the cipher
is initialized.

Patch by: me

(cherry picked from commit 244f2bcc921bc5dc45e6c1970e27ac2409c44e17)


# ae7dce1f 17-Mar-2024 Damjan Jovanovic <damjan@apache.org>

getFlag() isn't happy on Visual Studio 2008, hack it to work.

Patch by: me

(cherry picked from commit 42c0a318a970f6f7f43d26a8397448d5d5b8bd36)


# d5436bf6 17-Mar-2024 Damjan Jovanovic <damjan@apache.org>

Use &v[0] instead of v.data() for "::std::vector v", because Visual Studio 2008
doesn't have the ::std::vector::data() method in its broken/incomplete STL.

Patch by: me

(cherry picked from commit f

Use &v[0] instead of v.data() for "::std::vector v", because Visual Studio 2008
doesn't have the ::std::vector::data() method in its broken/incomplete STL.

Patch by: me

(cherry picked from commit f65b4e326d91bfe900dc1dd22ece69e3ddd8444a)

show more ...


# 4e7b0f82 02-Mar-2024 Damjan Jovanovic <damjan@apache.org>

Implement the (MS Office 2010+) OOXML "Agile encryption" support, so that we
can open such password-protected OOXML files.

Adds all the Agile encryption XML tokens and namespaces, and parses the XML

Implement the (MS Office 2010+) OOXML "Agile encryption" support, so that we
can open such password-protected OOXML files.

Adds all the Agile encryption XML tokens and namespaces, and parses the XML
from EncryptionInfo stream, gets OpenOffice to recognize the file is encrypted
and ask for a password, and successfully decrypts the file if password is
correct.

Also a number of other fixes and improvements:
- Sorted main/oox/source/token/tokens.txt so it's in alphabetical order
(wrong order might have broken certain tokens?).
- Refactored how OOXML encryption is generally handled. It's now in its
own file.
- Added logging to the FilterDetect class. It logs to the office-wide default
logger.
- Added a flush() method to the BinaryXOutputStream class.
- Changed FilterDetect to use XMultiComponentFactory and XComponentContext
instead of the deprecated XMultiServiceFactory.
- Error handling was generally improved.
- Exception safety and some memory safety (::std::vector instead of new[])
in all the new code. Memory leaks should not be possible.

Much of the code involved in the decryption was ported from the excellent
Apache POI project, so it's been credited in our NOTICE file.

Patch by: me

(cherry picked from commit 506fa58b1970084a0caacb50b3a805e469be4756)

show more ...