Skip to content
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

Correct password verification for revision 3 or greater #12

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

kushal-kumaran
Copy link

According to spec, only the first 16 bytes must be compared when verifying password with Algorithm 3.5 revision 3 or greater.

@kushal-kumaran
Copy link
Author

To add some context, I ran into some pdf files generated by "[ClibPDF Library 2.02-r1-2] Windows 9x/NT" which did not use 0 as the arbitrary padding bytes. That's when I looked at the spec and figured out we're only supposed to compare the first 16 bytes of the U entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant