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

Simon Steiner commented on PDFBOX-5767:
---------------------------------------

PDF spec says "If using the AES algorithm, the Cipher Block Chaining (CBC) 
mode, which requires an initialization vector, is used. The block size 
parameter is set to 16 bytes, and the initialization vector is a 16-byte random 
number that is stored as the first 16 bytes of the encrypted stream or string."

> Encryption IV value
> -------------------
>
>                 Key: PDFBOX-5767
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5767
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Simon Steiner
>            Priority: Major
>
> Should this be set to a random number instead of zeros:
> new IvParameterSpec(new byte[16])



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to