Browse Source

Add defualt case with meaningful panic

pull/1683/head
Cole Brown 5 years ago
parent
commit
21142a6fb6
  1. 2
      core/crypto/key.go

2
core/crypto/key.go

@ -191,6 +191,8 @@ func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedK
case "AES-256": case "AES-256":
ivSize = 16 ivSize = 16
cipherKeySize = 32 cipherKeySize = 32
default:
panic("Unrecognized cipher, programmer error?")
} }
hmacKeySize := 20 hmacKeySize := 20

Loading…
Cancel
Save