Skip to content

Commit

Permalink
PDFBOX-5639: add test
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1911309 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 27, 2023
1 parent 2bec1af commit ddb6efe
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,21 @@ void testPDFBox4453() throws IOException
}
}

/**
* test AESV3 with R=5 and excess bytes.
*
* @throws IOException
*/
@Test
void testPDFBox5639() throws IOException
{
File file = new File("target/pdfs", "PDFBOX-5639.pdf");
try (PDDocument document = Loader.loadPDF(file, "JUL2023rfi"))
{
assertEquals(2, document.getNumberOfPages());
}
}

private void testSymmEncrForKeySize(String filename, int keyLength, boolean preferAES,
int sizePriorToEncr, byte[] inputFileAsByteArray,
String userpassword, String ownerpassword,
Expand Down

0 comments on commit ddb6efe

Please sign in to comment.