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

Ralf Hauser commented on PDFBOX-2460:
-------------------------------------

- re "risky" even if a "null" were to match, if you get the wrong private key, 
with a decent algorithm, the decryption should fail

- as for your error above: have you gotten the source bc*-jdk15on150.jar and 
stepped through the match() ?
  For me, it matched and afterwards decrypted properly.

-"j" was added to give additional debug statements/insights for the case the 
RID would not match, but since it did match and there was only one 
recipCertificate, I didn't pursue that.

> fix TestPublicKeyEncryption.java
> --------------------------------
>
>                 Key: PDFBOX-2460
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2460
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.0
>         Environment: java7 , deb7
>            Reporter: Ralf Hauser
>         Attachments: patch2460Decryption.txt, patch2460PublicKeyTestCase.txt
>
>
> as reported by Tilman in PDFBOX-2456



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to