Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-secio
Commits
6d84e875
Unverified
Commit
6d84e875
authored
Jul 12, 2019
by
bigs
Committed by
GitHub
Jul 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #52 from libp2p/bug/remove-blowfish-support
Remove support for blowfish
parents
94b91345
ecb80df4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
al.go
al.go
+1
-4
No files found.
al.go
View file @
6d84e875
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment