From ecb80df49dee0e8825c224af89fa8c06ea61f7fd Mon Sep 17 00:00:00 2001 From: Cole Brown Date: Wed, 10 Jul 2019 17:29:55 -0400 Subject: [PATCH] Remove support for blowfish --- al.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/al.go b/al.go index 6423f3f..8931fec 100644 --- a/al.go +++ b/al.go @@ -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) }