mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 04:37:30 +08:00
Merge pull request #1548 from prusnak/remove-p224
remove elliptic.P224 usage
This commit is contained in:
@ -102,8 +102,6 @@ func GenerateEKeyPair(curveName string) ([]byte, GenSharedKey, error) {
|
|||||||
var curve elliptic.Curve
|
var curve elliptic.Curve
|
||||||
|
|
||||||
switch curveName {
|
switch curveName {
|
||||||
case "P-224":
|
|
||||||
curve = elliptic.P224()
|
|
||||||
case "P-256":
|
case "P-256":
|
||||||
curve = elliptic.P256()
|
curve = elliptic.P256()
|
||||||
case "P-384":
|
case "P-384":
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// List of supported ECDH curves
|
// 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
|
// List of supported Ciphers
|
||||||
var SupportedCiphers = "AES-256,AES-128,Blowfish"
|
var SupportedCiphers = "AES-256,AES-128,Blowfish"
|
||||||
|
Reference in New Issue
Block a user