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

Cleartext Framework: Do not include the line ending separator in the decoded plaintext #242

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

lubux
Copy link
Member

@lubux lubux commented Nov 8, 2024

The cleartext plaintext should exclude the line ending separator defined by the Cleartext Signed Message Structure. The line ending separator change was made to enhance interoperability, as the original implementation was non-deterministic—potentially adding a newline when the input lacked one.

GopenPGP removes the additional line ending separator, but this could be directly handled by go-crypto.

The cleartext plaintext should not include the line ending
separator given by the Cleartext Signed Message Structure.
@lubux
Copy link
Member Author

lubux commented Nov 8, 2024

TODO: Upstream change to GopenPGP.VerifyCleartext

@lubux lubux linked an issue Nov 8, 2024 that may be closed by this pull request
@lubux lubux merged commit 2d2c789 into main Nov 8, 2024
8 checks passed
@lubux lubux deleted the feat/cleartext-new-line-plaintext branch November 8, 2024 14:35
lubux added a commit to ProtonMail/gopenpgp that referenced this pull request Nov 11, 2024
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.

clearsign.Encode/Decode round trip introduces extra newline?
2 participants