ICEpdf
  1. ICEpdf
  2. PDF-851

RC4 AES encrypted document is prompting for password

    Details

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

      Description

      The file in question uses 128 bit RC4 AES encryption. For some reason the password callback is being fired by the security handler. Further investigation is needed.

        Activity

        Hide
        Patrick Corless added a comment -

        After quite a bit of tracing it appears that we had an issue with how we are calculating the encryption key for v4 of the specification. The main issue was with regards to step 6 implementation or lack there of.

        "If document metadata is not being encrypted, pass 4 bytes with the value of 0xFFFFFFFF to the MD5 hash, Security handlers of revision 4 or greater)"

        Interestingly enough this bug has been around for quite some time.

        Show
        Patrick Corless added a comment - After quite a bit of tracing it appears that we had an issue with how we are calculating the encryption key for v4 of the specification. The main issue was with regards to step 6 implementation or lack there of. "If document metadata is not being encrypted, pass 4 bytes with the value of 0xFFFFFFFF to the MD5 hash, Security handlers of revision 4 or greater)" Interestingly enough this bug has been around for quite some time.
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: