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

x/crypto/openpgp: Better support for signing subkeys #41618

taralx opened this issue Sep 24, 2020 · 3 comments

x/crypto/openpgp: Better support for signing subkeys #41618

taralx opened this issue Sep 24, 2020 · 3 comments


Copy link

@taralx taralx commented Sep 24, 2020

Support already exists for reading and verifying signing subkeys, but not creating or writing them. Proposed changes:

  • openpgp/packet: serialize embedded signatures
    Currently embedded signatures will not serialize if the signature is generated/re-generated. This adds that functionality and introduces a Signature.SerializeRaw method that writes the signature without the packet wrapper.
  • openpgp: add cross-signature support
    Signing subkeys require a cross-signature, which is computed on the same hash as the subkey binding signature. This introduces a Signature.CrossSignKey method that can be used to generate these cross-signatures.
@gopherbot gopherbot added this to the Unreleased milestone Sep 24, 2020
Copy link

@katiehockman katiehockman commented Sep 24, 2020

Copy link

@syadav2015 syadav2015 commented Sep 29, 2020

@taralx I had added support for subkey signatures along with revocation support for keys and subkeys in, however lack of any reviews or response from upstream devs for ctypto/openpgp package ( see this discussion for reference ) led me to submit my changes to protonmail's crypto package fork and update my project to use their fork.

Copy link

@FiloSottile FiloSottile commented Mar 29, 2021

Per the accepted #44226 proposal and due to lack of maintenance, the package is now frozen and deprecated. No new changes will be accepted except for security fixes. The package will not be removed.

If this is a security issue, please email and we will assess it and provide a fix.

If you're looking for alternatives, consider the crypto/ed25519 package for simple signatures, for inline signatures, or for encryption. You can read a summary of OpenPGP issues and alternatives here.

If you are required to interoperate with OpenPGP systems and need a maintained package, we suggest considering one of multiple community forks of We don't endorse any specific one.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants