Commit 0ae8685b authored by Cole Brown's avatar Cole Brown

Add defualt case with meaningful panic

parent bc01c84a
...@@ -191,6 +191,8 @@ func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedK ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment