ProtonMail / go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
https://pkg.go.dev/github.com/ProtonMail/go-crypto
BSD 3-Clause "New" or "Revised" License
330 stars 100 forks source link

Only check hash prefix for v5 signatures #165

Closed andrewgdotcom closed 1 year ago

andrewgdotcom commented 1 year ago

Closes #107

Note that this follows the convention elsewhere in the same function where we only check for sig.Version == 5 and not sig.Version >= 5; this will have to be updated for v6 compatibility but this PR is not the place for that change (or is it?).

lubux commented 1 year ago

Thanks for the pull request. @twiss I added this change to the v6 branch as well.