[
https://issues.apache.org/jira/browse/PDFBOX-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13650640#comment-13650640
]
Maruan Sahyoun commented on PDFBOX-1593:
----------------------------------------
Hi Thomas,
I quickly run through the code and the PDF spec. To me AES 265 is currently not
supported in PDFBox at all. It's not only that the key length is different.
There are changes to the EncryptionDictionary, it's not using MD5 .....
Take a look at
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf
(specially 3.5.1) or ISO 32000-2.
That would make it a new feature instead of a bug as the current code can't
deal with it. I might be wrong though as this is an area I've not touched in
PDFBox yet.
BR
Maruan
> Adobe encrypted document doesn't parse correct (Acrobat 9 compatibility)
> ------------------------------------------------------------------------
>
> Key: PDFBOX-1593
> URL: https://issues.apache.org/jira/browse/PDFBOX-1593
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.1
> Reporter: Thomas Chojecki
> Attachments: Test.pdf, Test_secured Adobe7_compatible.pdf,
> Test_secured Adobe9.pdf
>
>
> Trying to parse and receive some information from encrypted documents created
> with Adobe 9 with compatibility to Acrobat 9, cause an error while decrypting
> informations.
> I tested documents with follow compatibility:
> Acrobat 3 (40-bit RC4) -> works
> Acrobat 5 & 6 (128-bit RC4) -> work
> Acrobat 7 (128-bit AES) -> work
> Acrobat 9 (256-bit AES) -> doesn't work
> The follow error will be thrown.
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.computeEncryptedKey(StandardSecurityHandler.java:591)
> at
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.computeUserPassword(StandardSecurityHandler.java:628)
> at
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.isUserPassword(StandardSecurityHandler.java:812)
> at
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareForDecryption(StandardSecurityHandler.java:213)
> at
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:154)
> at
> org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1509)
> at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:919)
> at de.bos_bremen.pdftoolbox.testing.Test.main(Test.java:45)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira