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 LibrePGP SKESK5 + OCBED1 decryption #1795

Closed
wants to merge 3 commits into from

Conversation

vanitasvitae
Copy link
Contributor

@vanitasvitae vanitasvitae commented Aug 29, 2024

While playing with some test vectors from the LibrePGP document, I noticed that decryption of message encrypted using a v5 SKESK (SymmetricKeyEncSessionPacket) + OCBED (AEADEncDataPacket) packets would fail decrypting.

It turns out that LibrePGP omits the additional HKDF key derivation step introduced by OpenPGP v6.
This PR adds the test vectors from the LibrePGP document and fixes decryption.

@vanitasvitae vanitasvitae changed the title Fix v5 skesk decryption Fix LibrePGP SKESK5 + OCBED1 decryption Aug 29, 2024
@vanitasvitae
Copy link
Contributor Author

Closed in favor of #1809

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