You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of go1.20, the go stdlib now includes a crypto/ecdh package which is designed to provide a safer way to use elliptic-curve cryptography.
Once we're 100% using go1.20 or above, we should go through and replace as many instances of crypto/elliptic as we can.
The text was updated successfully, but these errors were encountered:
aarongable
changed the title
Replace crypto/elliptic with crypto/ecdh where possible
go1.20: Replace crypto/elliptic with crypto/ecdh where possible
Dec 14, 2022
This functionality cannot be replicated with the new ecdh.P256().GenerateKey(), because that produces an ecdh.PrivateKey which cannot be converted to an ecdsa.PrivateKey.
Using elliptic.Unmarshal() to convert raw bytes into a point on a curve, such as here:
As of go1.20, the go stdlib now includes a crypto/ecdh package which is designed to provide a safer way to use elliptic-curve cryptography.
Once we're 100% using go1.20 or above, we should go through and replace as many instances of crypto/elliptic as we can.
The text was updated successfully, but these errors were encountered: