ICEpdf
  1. ICEpdf
  2. PDF-1062

Encryption dictionary error decoding hex strings

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.3
    • Fix Version/s: 6.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A community member has reported an encryption issue related to PDF-868. The posted file is another example of hex strings that start off with FEFF which would normally be a flag indicating a 4 byte encoding. I should have given the hole class an audit for PDF-868 but unfortunately didn't.

      Once the class is updated to use the raw value of the hex string the document decrypts correctly.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.1.4 [ 13090 ]
        Hide
        Patrick Corless added a comment -

        Updated the EncryptionDictionary class to handle ObjectString values as raw byte values. These addresses the encoding issue which was preventing the calculation of a correct encryption key.

        Show
        Patrick Corless added a comment - Updated the EncryptionDictionary class to handle ObjectString values as raw byte values. These addresses the encoding issue which was preventing the calculation of a correct encryption key.
        Hide
        Patrick Corless added a comment -

        Fixes checked in on the Branch and Trunk.

        Show
        Patrick Corless added a comment - Fixes checked in on the Branch and Trunk.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49538 Thu Nov 10 11:21:39 MST 2016 patrick.corless PDF-1062 fixed a hex string parsing issue in the EncryptionDictionary which was providing StandardEncryption with incorrect values causing an invalid key to be created.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/security/StandardEncryption.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/security/EncryptionDictionary.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49539 Thu Nov 10 11:21:54 MST 2016 patrick.corless PDF-1062 fixed a hex string parsing issue in the EncryptionDictionary which was providing StandardEncryption with incorrect values causing an invalid key to be created.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/security/StandardEncryption.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/security/EncryptionDictionary.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: