git.iko.soy/typeable/oauth2-proxy
on master help sign in
More obvious comment on CFB
commit2f61e42c37687193a2f3fe52a7f56e3943b31693 authorJoel Speed <Joel.speed@hotmail.co.uk> dateThu 16 May 2019, 17:07 (7 years ago) parentf435fa6
1 file changed+1−1
pkg/sessions/redis/redis_store.go+1−1
pkg/sessions/redis/redis_store.go+1−1
@@ -197,7 +197,7 @@ func (store *SessionStore) storeValue(value string, expiresOn time.Time, request
197197 return "", fmt.Errorf("error initiating cipher block %s", err)
198198 }
199199
200− // Use secret as the IV too, because each entry has it's own key
200+ // Use secret as the Initialization Vector too, because each entry has it's own key
201201 stream := cipher.NewCFBEncrypter(block, ticket.Secret)
202202 stream.XORKeyStream(ciphertext, []byte(value))
203203