1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-04-28 17:10:14 +08:00

Remove support for blowfish

This commit is contained in:
Cole Brown 2019-07-10 17:30:45 -04:00
parent 2835a4015f
commit bc01c84a59

View File

@ -191,10 +191,6 @@ func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedK
case "AES-256":
ivSize = 16
cipherKeySize = 32
case "Blowfish":
ivSize = 8
// Note: cypherKeySize arbitrarily selected, needs more thought
cipherKeySize = 32
}
hmacKeySize := 20