You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/12/02 22:34:10 UTC
[jira] [Issue Comment Deleted] (PDFBOX-3149) Failure to decrypt
empty strings (AES 128)
[ https://issues.apache.org/jira/browse/PDFBOX-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-3149:
------------------------------------
Comment: was deleted
(was: encrypted file with an empty string in object 7, password is abcdefghijk1234567890abcdefghijk1234567890, and it can be opened with PDFDebugger without any trouble.)
> Failure to decrypt empty strings (AES 128)
> ------------------------------------------
>
> Key: PDFBOX-3149
> URL: https://issues.apache.org/jira/browse/PDFBOX-3149
> Project: PDFBox
> Issue Type: Bug
> Components: Crypto, Parsing, PDModel
> Affects Versions: 2.0.0
> Reporter: Jesse Long
> Assignee: Tilman Hausherr
> Priority: Minor
> Attachments: PDFBOX-3149.patch, Simple-128-bit-encrypted.pdf
>
>
> SecurityHandler fails to decrypt empty strings in a AES 128 encrypted PDF.
> Strings like: <</Name ()>>
> This is because it tries to read the first 16 bytes as the AES IV, failing which it throws IOException. Solution: if you cannot read any bytes from the stream, it is empty and so there is nothing to decrypt.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org