gopenpgp
gopenpgp copied to clipboard
A high-level OpenPGP library
GopenPGP does not honor the expiration time on primary key binding signatures. Reproducer: This is a signature over the string "Hello World :)": ``` -----BEGIN PGP SIGNATURE----- wsDzBAABCgAGBYJfLAFsACEJEHwvqk35PDeyFiEEHdzhXwkhfO4vOzdgfC+qTfk8 N7KiqwwAts4QGB7v9bABCC2qkTxJhmStC0wQMcHRcjL/qAiVnmasQWmvE9KVsdm3 AaXd8mIx4a37/RRvr9dYrY2eE4uw72cMqPxNja2tvVXkHQvk1oEUqfkvbXs4ypKI...
When generating keys (https://github.com/ProtonMail/gopenpgp#generate-key), there are no parameters to set the expiration date for the PGP keys. There seems to be SigLifetimeSecs, KeyLifetimeSecs in the packet signature, but is not...
This causes issues with big (> a few megabytes) attachments. A streaming API would be nicer. Thoughts?
I have a private key with both an ED25519 (256-bit EdDSA, that is) subkey and a 4096-bit RSA subkey. I see no possible way to specify signing with the ED25519...
This allows for ASCII encoding of keyrings the same way as already implemented for individual keys.
As other PGP libraries, the option to allow the decryption of unauthenticated messages should be exposed from the `crypto.KeyRing.Decrypt*` methods. There is already an option on the `go-crypto/openpgp/packet/Config` struct: `InsecureAllowUnauthenticatedMessages`,...
When I attempt to build my module which includes `gopenpgp`, I cannot Here's my `go.mod`: ``` module decrypt-gopher go 1.17 require ( github.com/ProtonMail/gopenpgp/v2 v2.0.1 github.com/aws/aws-lambda-go v1.19.1 github.com/aws/aws-sdk-go v1.30.7 github.com/imdario/mergo v0.3.9...
Add option to trim input lines when writing PGP messages in the encryption and sing handle. This can be useful for example in [PGP/MIME](https://datatracker.ietf.org/doc/html/rfc3156).