Commit ecb80df4 authored by Cole Brown's avatar Cole Brown

Remove support for blowfish

parent 94b91345
......@@ -14,7 +14,6 @@ import (
ci "github.com/libp2p/go-libp2p-core/crypto"
sha256 "github.com/minio/sha256-simd"
bfish "golang.org/x/crypto/blowfish"
)
// SupportedExchanges is the list of supported ECDH curves
......@@ -25,7 +24,7 @@ const DefaultSupportedExchanges = "P-256,P-384,P-521"
// SupportedCiphers is the list of supported Ciphers
var SupportedCiphers = DefaultSupportedCiphers
const DefaultSupportedCiphers = "AES-256,AES-128,Blowfish"
const DefaultSupportedCiphers = "AES-256,AES-128"
// SupportedHashes is the list of supported Hashes
var SupportedHashes = DefaultSupportedHashes
......@@ -88,8 +87,6 @@ func newBlockCipher(cipherT string, key []byte) (cipher.Block, error) {
switch cipherT {
case "AES-128", "AES-256":
return aes.NewCipher(key)
case "Blowfish":
return bfish.NewCipher(key)
default:
return nil, fmt.Errorf("Unrecognized cipher type: %s", cipherT)
}
......
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