Closed
Description
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