You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public_key.go returns string slices of the fingerprint for long and short KeyIDs, but the slice offsets assume v4 fingerprints:
// KeyIdString returns the public key's fingerprint in capital hex
// (e.g. "6C7EE1B8621CC013").
func (pk *PublicKey) KeyIdString() string {
return fmt.Sprintf("%X", pk.Fingerprint[12:20])
}
// KeyIdShortString returns the short form of public key's fingerprint
// in capital hex, as shown by gpg --list-keys (e.g. "621CC013").
func (pk *PublicKey) KeyIdShortString() string {
return fmt.Sprintf("%X", pk.Fingerprint[16:20])
}
public_key.go returns string slices of the fingerprint for long and short KeyIDs, but the slice offsets assume v4 fingerprints:
go-crypto/openpgp/packet/public_key.go
Line 1048 in d703f49
For v6 (and v5) keys the long keyID should be the first eight octets of the fingerprint, and the short keyID is not defined.
The text was updated successfully, but these errors were encountered: