Commit 58281f5c authored by Cole Brown's avatar Cole Brown

Add note about panic to KeyStretcher comments

parent 0ae8685b
...@@ -180,7 +180,11 @@ type StretchedKeys struct { ...@@ -180,7 +180,11 @@ type StretchedKeys struct {
} }
// KeyStretcher returns a set of keys for each party by stretching the shared key. // KeyStretcher returns a set of keys for each party by stretching the shared key.
// (myIV, theirIV, myCipherKey, theirCipherKey, myMACKey, theirMACKey) // (myIV, theirIV, myCipherKey, theirCipherKey, myMACKey, theirMACKey).
// This function accepts the following cipher types:
// - AES-128
// - AES-256
// The function will panic upon receiving an unknown cipherType
func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys) { func KeyStretcher(cipherType string, hashType string, secret []byte) (StretchedKeys, StretchedKeys) {
var cipherKeySize int var cipherKeySize int
var ivSize int var ivSize int
......
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