Skip to content

Avoid double compression in signcryption with a session key#337

Merged
lubux merged 2 commits intomainfrom
fix/sk-double-compression
May 2, 2025
Merged

Avoid double compression in signcryption with a session key#337
lubux merged 2 commits intomainfrom
fix/sk-double-compression

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