More obvious comment on CFB

This commit is contained in:
Joel Speed 2019-05-16 17:07:43 +01:00
parent cf1a9c819d
commit d461812444
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB

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) 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 := cipher.NewCFBEncrypter(block, ticket.Secret)
stream.XORKeyStream(ciphertext, []byte(value)) stream.XORKeyStream(ciphertext, []byte(value))