Skip to content

x/crypto/openpgp: subkey selfsigs are added to the uid signatures #26449

Closed
@aviau

Description

@aviau

Consider the following packet ordering scenario:
PUBKEY UID SELFSIG SUBKEY REV SELFSIG

In this scenario, the openpgp package will add the subkey's selfsig to the UID.

This happens because the code assumes that there can only be one signature following the subkey, which isn't the case.

I have code that checks the number of signatures on an UID and it breaks because of this.

I have opened a pull request about this more than a month ago and I have received no answer, perhaps I should open an issue here?

see: https://go-review.googlesource.com/c/crypto/+/118957

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions