Skip to content

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

@taralx

Description

@taralx

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

  • https://go-review.googlesource.com/c/crypto/+/256279 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.
  • https://go-review.googlesource.com/c/crypto/+/256280 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions