More obvious comment on CFB

This commit is contained in:
Joel Speed 2019-05-16 17:07:43 +01:00 committed by Brian Van Klaveren
parent f435fa68ab
commit 2f61e42c37

View File

@ -197,7 +197,7 @@ func (store *SessionStore) storeValue(value string, expiresOn time.Time, request
return "", fmt.Errorf("error initiating cipher block %s", err)
}
// Use secret as the IV too, because each entry has it's own key
// Use secret as the Initialization Vector too, because each entry has it's own key
stream := cipher.NewCFBEncrypter(block, ticket.Secret)
stream.XORKeyStream(ciphertext, []byte(value))