diff --git a/al.go b/al.go index 6423f3f2a94e0803355cd3bd3783974ea4ef7874..8931fec64a5d6fd7fb1ba436dc946d9cc22f6c5f 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) }