Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #52 from libp2p/bug/remove-blowfish-support
Browse files Browse the repository at this point in the history
Remove support for blowfish
  • Loading branch information
bigs committed Jul 12, 2019
2 parents 94b9134 + ecb80df commit 6d84e87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions al.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 6d84e87

Please sign in to comment.