microsoft / go-crypto-winnative

Go crypto backend for Windows using CNG
MIT License
28 stars 3 forks source link

Implement ECDH #28

Closed qmuntal closed 2 years ago

qmuntal commented 2 years ago

Go 1.20 will come with a new crypto package: crypto/ecdh.

The boring bindings are still WIP, see CL 423363, but we better start supporting it sooner than later, so we are on par with upstream once the release is cut.

This PR adds the necessary ECDH CNG bindings, and a couple of refactors to reuse RSA/ECDSA code, with the following caveats: