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

Update armor.go #173

Closed Shekharcodess closed 1 year ago

Shekharcodess commented 1 year ago

Non empty line being parsed as a header fix. By adding a check for an empty line or a line containing only whitespace characters, it is ensured that the library will ignore such lines and proceed with decoding the rest of the armored data rather than trying to parse it as a header or find a new block

lubux commented 1 year ago

Addressed with #174.

twiss commented 1 year ago

Hey @Shekharcodess :wave: Thanks for the PR! We've merged a simpler fix in https://github.com/ProtonMail/go-crypto/pull/174.

Shekharcodess commented 1 year ago

Hey @Shekharcodess 👋 Thanks for the PR! We've merged a simpler fix in #174.

Sure, the goal is to fix things. Cheers