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

Ignore most unhashed subpackets #145

Closed twiss closed 1 year ago

twiss commented 1 year ago

This change more systematically ignores unhashed subpackets, including some that were forgotten, such as the recently implemented Trust and Regular Expression subpackets (#138, #139) and the Signer's User ID subpacket (#105).

Additionally, after this change, unhashed critical unknown subpackets are ignored (don't cause a signature parsing failure), since they could be removed from the signature without affecting the signature validity.