From d4618124448d3ce9d9fca5cbb960ffebf80d8f32 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Thu, 16 May 2019 17:07:43 +0100 Subject: [PATCH] More obvious comment on CFB --- pkg/sessions/redis/redis_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sessions/redis/redis_store.go b/pkg/sessions/redis/redis_store.go index a428033..154b839 100644 --- a/pkg/sessions/redis/redis_store.go +++ b/pkg/sessions/redis/redis_store.go @@ -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))