mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-04-28 17:10:14 +08:00
Add defualt case with meaningful panic
This commit is contained in:
parent
bc01c84a59
commit
0ae8685baf
@ -191,6 +191,8 @@ func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedK
|
||||
case "AES-256":
|
||||
ivSize = 16
|
||||
cipherKeySize = 32
|
||||
default:
|
||||
panic("Unrecognized cipher, programmer error?")
|
||||
}
|
||||
|
||||
hmacKeySize := 20
|
||||
|
Loading…
Reference in New Issue
Block a user