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
PGPainless produces broken messages for some signature / data format combinations. #264
Comments
For now users are advised to avoid using All other combinations should be fine now. |
The reason is that values other than BINARY oftentimes cause issues (see #264), and further experts recommended to ignore the metadata of the LiteralData packet and only produce with ('b'/0/) as metadata values.
After checking back with some other OpenPGP developers it was decided that the best way forward is to deprecate This would mean that all messages would use PGPainless release 1.2.X will remove |
@teythoon suggested that the Literal Data packets format option ( As a consequence I decided to stop automatically CRLF-encoding messages based on the For that purpose I copied a class from Bouncy Castle that gets the job done.
UPDATE: This is no longer necessary. |
Update: |
A signature over data can either be of
SignatureType.BINARY_DOCUMENT
orSignatureType.CANONICAL_TEXT_DOCUMENT
.The body of a literal data packet can either be ´StreamEncoding.BINARY´, ´StreamEncoding.TEXT´ or ´StreamEncoding.UTF8´.
It turns out, that PGPainless only produces valid output for (BINARY,BINARY) combination.
Others result in errors, or lead to interoperability problems.
This is being investigated in https://github.com/pgpainless/pgpainless/tree/canonicalizedDatza
UPDATE
Some of the error cases have been fixed:
The text was updated successfully, but these errors were encountered: