Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2586

IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Parsing
    • Labels:

      Description

      On java version "1.7.0_72", java version "1.8.0_20" works ok

      java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage test.pdf
      Exception in thread "main" java.io.IOException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
      at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:115)

        Attachments

        1. SecurityHandler.diff
          0.6 kB
          Michele Balistreri
        2. test.pdf
          8 kB
          Simon Steiner

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              ssteiner Simon Steiner
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: