summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/pdf/pdf-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c
index ef87655e..d502c378 100644
--- a/source/pdf/pdf-crypt.c
+++ b/source/pdf/pdf-crypt.c
@@ -180,7 +180,7 @@ pdf_new_crypt(fz_context *ctx, pdf_obj *dict, pdf_obj *id)
/* Determine encryption key length */
crypt->length = 40;
- if (crypt->v == 2)
+ if (crypt->v == 2 || crypt->v == 4)
{
obj = pdf_dict_gets(dict, "Length");
if (pdf_is_int(obj))