Commit 71ef0279 authored by Pavol Rusnak's avatar Pavol Rusnak
Browse files

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: default avatarPavol Rusnak <stick@gk2.sk>
parent c65f633d
......@@ -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":
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment