From 016cb3199865f798f401c452554eea6e74055950 Mon Sep 17 00:00:00 2001 From: Luis Bernardo Date: Sat, 18 May 2013 22:25:52 +0000 Subject: FOP-2248: add support for AES 256 PDF encryption git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1484190 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/render/pdf/PDFRendererConfigParserTestCase.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test/java/org/apache/fop/render') diff --git a/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java b/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java index 2d21b399c..2d3dfb760 100644 --- a/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java +++ b/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java @@ -165,13 +165,21 @@ public class PDFRendererConfigParserTestCase .getEncryptionLengthInBits()); } - for (int i = 128; i < 1000; i += 50) { + for (int i = 128; i < 256; i += 10) { parseConfig(createRenderer() .startEncryptionParams() .setEncryptionLength(i) .endEncryptionParams()); assertEquals(128, conf.getConfigOptions().getEncryptionParameters().getEncryptionLengthInBits()); } + + for (int i = 256; i < 1000; i += 50) { + parseConfig(createRenderer() + .startEncryptionParams() + .setEncryptionLength(i) + .endEncryptionParams()); + assertEquals(256, conf.getConfigOptions().getEncryptionParameters().getEncryptionLengthInBits()); + } } @Test -- cgit v1.2.3