[ https://issues.apache.org/jira/browse/PDFBOX-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martijn Brinkers updated PDFBOX-907: ------------------------------------ Attachment: MBTA_Review_2009.pdf Test file downloaded from http://www.mbtareview.com/MBTA_Review_2009.pdf The file was found using google so it should be a file that is allowed to be read by the public > 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 > 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.