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
328 stars 99 forks source link

Make armor decode more robust to empty header values #174

Closed lubux closed 1 year ago

lubux commented 1 year ago

This pull request adapts armor.Decode to allow empty values in headers. Messages of the following form can now be parsed:

-----BEGIN PGP SIGNATURE-----
Version: 
...
-----END PGP SIGNATURE-----`