[poppler] Decryption bugfix
dan.sheridan at postman.org.uk
Wed Mar 16 04:48:43 PST 2005
PDF seems to be slightly confusing when it comes to the number of bits
used for the encryption key. In the standard, p93 says:
Length integer (Optional; PDF 1.4; only if V is 2 or 3) The
of the encryption key, in bits. The value must be a
multiple of 8, in the range 40 to 128. Default value:
But, when defining the actual algorithms, it says (p101):
Set the encryption key to the first n bytes of the output from
the final MD5 hash, where n is always 5 for revision 2 but, for
revision 3 or greater, depends on the value of the encryption
dictionary's Length entry.
Currently, poppler uses the Length entry to determine the length of the
key in revision 2 documents. The patch below fixes this and allows me to
open IEC standards documents in Evince.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 462 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050316/d4d6c2cb/poppler-decrypt.bin
More information about the poppler