Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROB: Crop data of /U and /O in encryption dictionary to 48 bytes (#1317)
The specification says: To understand the algorithm below, it is necessary to treat the O and U strings in the Encrypt dictionary as made up of three sections. The first 32 bytes are a hash value (explained below). The next 8 bytes are called the Validation Salt. The final 8 bytes are called the Key Salt. So /U and /O should be 48-bytes data, but for the PDF file which causes #1288 , /O 's length is 127-bytes. The redundant data are zeros. Fixes #1288
- Loading branch information