From d3efdcf0c383309fa50f8f27ae4569632b5ffbcb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 3 Aug 2015 16:37:42 +0200 Subject: [PATCH] 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 --- p2p/crypto/key.go | 2 -- p2p/crypto/secio/al.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/p2p/crypto/key.go b/p2p/crypto/key.go index 37f330b1b..3f7a27dc3 100644 --- a/p2p/crypto/key.go +++ b/p2p/crypto/key.go @@ -102,8 +102,6 @@ func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error) { var curve elliptic.Curve switch curveName { - case "P-224": - curve = elliptic.P224() case "P-256": curve = elliptic.P256() case "P-384": diff --git a/p2p/crypto/secio/al.go b/p2p/crypto/secio/al.go index 071e75db6..9fc3833e3 100644 --- a/p2p/crypto/secio/al.go +++ b/p2p/crypto/secio/al.go @@ -18,7 +18,7 @@ import ( ) // List of supported ECDH curves -var SupportedExchanges = "P-256,P-224,P-384,P-521" +var SupportedExchanges = "P-256,P-384,P-521" // List of supported Ciphers var SupportedCiphers = "AES-256,AES-128,Blowfish"