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 2018/12/23 08:55:00 UTC

[jira] [Comment Edited] (PDFBOX-4413) Add support for AES256 encryption for public key

    [ https://issues.apache.org/jira/browse/PDFBOX-4413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727569#comment-16727569 ] 

Tilman Hausherr edited comment on PDFBOX-4413 at 12/23/18 8:54 AM:
-------------------------------------------------------------------

The main differences are that SHA-256 is to be used instead of SHA-1, that the recipients must go into the crypt filter dictionary when the subfilter adbe.pkcs7.s5 is used (I couldn't get it to run with the adbe.pkcs7.s4 subfilter, and a working file I created with another software used adbe.pkcs7.s5), and that the standard crypt filter is now named /{color:#333333}DefaultCryptFilter{color} for public key encryption instead of /StdCF symmetric encryption.

I also improved the test so that it looks at the contents too. (Not doing it prevented the testing of the actual decryption).


was (Author: tilman):
The main differences are that the recipients must go into the crypt filter dictionary when the subfilter adbe.pkcs7.s5 is used (I couldn't get it to run with the adbe.pkcs7.s4 subfilter, and a working file I created with another software used adbe.pkcs7.s5), and that the standard crypt filter is now named /{color:#333333}DefaultCryptFilter{color} for public key encryption instead of /StdCF symmetric encryption.

> Add support for AES256 encryption for public key
> ------------------------------------------------
>
>                 Key: PDFBOX-4413
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4413
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Crypto
>    Affects Versions: 2.0.13
>            Reporter: Tilman Hausherr
>            Priority: Major
>
> Adobe 9 added support for AES 256 encryption. This should also be implemented for public key encryption, currently it is only implemented for symmetric key encryption.
> Further information is available at [http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf].
> I suspect that much of it is already available in the base class, but PublicKeySecurityHandler.prepareDocumentForEncryption() is definitively old stuff.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org