You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2010/12/02 20:46:16 UTC
[jira] Resolved: (PDFBOX-907) Encrypted Key not correctly
calculated when the meta data is not encrypted
[ https://issues.apache.org/jira/browse/PDFBOX-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-907.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Assignee: Andreas Lehmkühler
I added the patch in revision 1041553 as proposed.
Thanks for the contribution
> Encrypted Key not correctly calculated when the meta data is not encrypted
> --------------------------------------------------------------------------
>
> Key: PDFBOX-907
> URL: https://issues.apache.org/jira/browse/PDFBOX-907
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.3.1
> Reporter: Martijn Brinkers
> Assignee: Andreas Lehmkühler
> Fix For: 1.4.0
>
> Attachments: MBTA_Review_2009.pdf, PDFBOX-907.patch
>
>
> Since rev 4, meta data can be unencrypted while the data is encrypted. If the metadata is not encrypted 0xFFFFFFFF should be added to the hash:
> "Security handlers of revision 4 or greater) If document metadata is not being encrypted, pass 4 bytes with
> the value 0xFFFFFFFF to the MD5 hash function."
> (see see 7.6.3.3 Algorithm 2 Step f of PDF 32000-1:2008)
> Whether or not the metadata is encrypted is store in the encryption dictionary. The default value is to encrypt the meta data.
> I will attach a patch to detect whether the meta data is encrypted, and if not 0xFFFFFFFF will be added.
> The document that I have tested with can be downloaded from http://www.mbtareview.com/MBTA_Review_2009.pdf
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.