pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PDFBOX-4413) Add support for AES256 encryption for public key
Date Sun, 23 Dec 2018 10:32:00 GMT

    [ 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 10:31 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 for 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 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).

> 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
>              Labels: AES256
>             Fix For: 2.0.14, 3.0.0 PDFBox
>
>
> 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


Mime
View raw message