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

Improve test coverage of PGP (v6) keys #1832

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vanitasvitae
Copy link
Contributor

This PR changes the PGPv6KeyTest to more extensively cover parsing of different fields, like key-id, creation time, s2k etc.

Testing also showed, that getBitStrength() returned 0 for (dedicated X25519), X448, Ed25519, Ed448 keys.
It also returned 0 for unknown keys.

This PR fixes these issues by properly parsing the bit strength (as in key-size, not security-level).

@vanitasvitae vanitasvitae force-pushed the moreKeyTests branch 5 times, most recently from 475f0de to 4847285 Compare September 16, 2024 10:23
@vanitasvitae
Copy link
Contributor Author

Oops, I noticed that during a previous rebase I got some unrelated commits included in the patch.
Fixed by rebasing once more on main.

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