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

Switch ECDH to prefer byte format #113

Closed wussler closed 2 years ago

wussler commented 2 years ago

Change internal ECDH interface to use bytes instead of big ints. This saves an encoding/decoding roundtrip for each X25519 and X448 operation, making NIST and Brainpool operations slightly less efficient by decoding big ints on each operation instead.