remove elliptic.P224 usage
Fedora/RedHat distros comply with US patent law and remove this curve, which makes it impossible to run ipfs with distro provided Golang. License: MIT Signed-off-by: Pavol Rusnak <stick@gk2.sk>
Pavol Rusnak committed
Aug 3, 2015 at 16:37 UTC
d3efdcf0c383309fa50f8f27ae4569632b5ffbcb
2 files changed
+1
-3
p2p/crypto/key.go
-2
@@ -102,8 +102,6 @@ func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error) {
102
var curve elliptic.Curve
103
104
switch curveName {
105
- case "P-224":
106
- curve = elliptic.P224()
105
case "P-256":
106
curve = elliptic.P256()
107
case "P-384":
p2p/crypto/secio/al.go
+1
-1
@@ -18,7 +18,7 @@ import (
18
)
19
20
// List of supported ECDH curves
21
-var SupportedExchanges = "P-256,P-224,P-384,P-521"
21
+var SupportedExchanges = "P-256,P-384,P-521"
22
23
// List of supported Ciphers
24
var SupportedCiphers = "AES-256,AES-128,Blowfish"