microsoft / go-crypto-winnative

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

Implement ECDSA sign/verify #11

Closed qmuntal closed 2 years ago

qmuntal commented 2 years ago

This PR implements ECDSA functions and methods.

There doesn't seem to be any incompatibility with Go crypto 😄

There are two related incompatibilities with the boring API:

This will require patching crypto/ecdsa to do special logic when working with this backend, but I expect it to be minimal.

qmuntal commented 2 years ago

I just noticed that this PR does not add support for P-224 and that I haven't documented it in the description. Although CNG does not provide P-224 curves out-of-the-box, I think it can be implemented as a custom curve, will try to do so in a follow-up PR.