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
334 stars 101 forks source link

Fix ECDH using v6 keys #233

Closed twiss closed 1 month ago

twiss commented 1 month ago

When using ECDH with v6 keys, the fingerprint length is not 20 bytes, so the KDF param is not 45 bytes.

(Note that this was already fixed in the Proton branch because this check was removed in #141 for unrelated reasons.)