-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signature dictionary "Contents" must not be encrypted #794
Comments
What is your use case and how does the current behavior interfere negatively with your work, |
I'm looking into signature support and found an issue with an encrypted and signed document where the certificate of a signature (in |
FYI Signature support is evolving and will be the main task before going Beta once we have better support for PDF 2.0. |
Great news! Is there a place where can I check the existing signature support? The Resolving this issue is trivial, so I figured to report it here and provide a patch if you're interested in fixing it. |
Very much appreciated and I agree this fix needs to go in. The So this will take some time I am afraid. |
This should be fixed with latest commit! |
Nope, sorry my bad - still open. |
Should I provide the change as merge request? |
No need thx, this goes in today - new release imminent. |
This is fixed with the latest commit. |
Perfect, thanks! |
For signature fields in encrypted documents, all entries in the
/Sig
dictionary are currently kept encrypted:pdfcpu/pkg/pdfcpu/crypto.go
Lines 1199 to 1200 in 793c509
According to the PDF specification, only the
/Contents
entry must be kept as-is. All other fields must be decrypted.See "7.6.2 Application of encryption":
Simple patch:
I'm happy to provide this as MR if interested.
The text was updated successfully, but these errors were encountered: