[
https://issues.apache.org/jira/browse/PDFBOX-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188658#comment-14188658
]
Tilman Hausherr commented on PDFBOX-2456:
-----------------------------------------
You mention "3) testProtection() looks good if I dump the decrypted files" -
not for me: I get "javax.crypto.BadPaddingException: Given final block not
properly padded" with the 256 key. It works fine with 40 bytes or with 128
bytes. The 256-bytes encrypted file can be opened with AR but not with another
product. This suggests that the 256 key encryption is broken.
> create TestSymmetricKeyEncryption.java
> --------------------------------------
>
> Key: PDFBOX-2456
> URL: https://issues.apache.org/jira/browse/PDFBOX-2456
> Project: PDFBox
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 2.0.0
> Environment: java7 debian7
> Reporter: Ralf Hauser
> Fix For: 2.0.0
>
> Attachments: TestSymmetricKeyEncryption.java,
> enc128bit_20141025_115145.pdf, enc256bit_20141025_105451.pdf,
> preEnc_20141025_105451.pdf, preEnc_20141025_115145.pdf
>
>
> similarly to org.apache.pdfbox.encryption.TestPublicKeyEncryption, also test
> password based encryption
> 1) 128bit
> 2) 256bit AES PDFBOX-1594
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)