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

SecretKeyPacket: Properly pass newPacketFormat down to PublicKeyPacket #1993

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

Conversation

vanitasvitae
Copy link
Contributor

When parsing a PGPSecretKeyRing from a PGPObjectFactory and comparing its encoding, I noticed that the packet format of the public key component was erroneously set to use the legacy packet format, although the test vector was using the new format.

The cause of this issue was, that the newPacketFormat flag was not passed down to the PubicKeyPacket constructor from within the SecretKeyPacket constructor.

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