Skip to content

Avoid double compression in signcryption with a session key #337

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

Merged
merged 2 commits into from
May 2, 2025

Conversation

lubux
Copy link
Member

@lubux lubux commented May 2, 2025

When using the encryption handle with both a session and a signing key, the data is compressed twice, once by GopenPGP during encryption and again by go-crypto fork during signing (If the key preferences allow compression).

This PR fixes the issue by only compressing once either in GopenPGP or in the go-crypto fork.

@lubux lubux added v3 Targeting GopenPGP v3 bug Something isn't working labels May 2, 2025
@lubux lubux changed the title Avoid double compression in sessionkey and signcryption Avoid double compression in signcryption with a session key May 2, 2025
@lubux lubux merged commit 9939658 into main May 2, 2025
8 checks passed
@lubux lubux deleted the fix/sk-double-compression branch May 2, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 Targeting GopenPGP v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants