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

Fix for issue 50, encrypting with keys that don't have a KeyFlags subpacket #52

Merged
merged 2 commits into from
Jul 12, 2020

Conversation

mdesmons
Copy link
Contributor

The current code checks the KeyFlags subpacket to determine if a key can be used to encrypt/sign.
However if the key doesn't have a KeyFlags subpacket Bouncy-GPG refuses to use it to encrypt/sign, whereas GPG has a fallback scenario where it analyses the key's algorithm to determine its role.

We implemented the same fallback scenario here, using the key algorithm if it doesn't have a KeyFlags subpacket.

@neuhalje
Copy link
Owner

Thanks for contributing!

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.

2 participants