git.iko.soy/typeable/oauth2-proxy
on master help sign in
More obvious comment on CFB
2f61e42Joel Speed
pkg/sessions/redis/redis_store.go+1−1
@@ -197,7 +197,7 @@ func (store *SessionStore) storeValue(value string, expiresOn time.Time, request
197 return "", fmt.Errorf("error initiating cipher block %s", err)
197 return "", fmt.Errorf("error initiating cipher block %s", err)
198 }
198 }
199
199
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
201 stream := cipher.NewCFBEncrypter(block, ticket.Secret)
201 stream := cipher.NewCFBEncrypter(block, ticket.Secret)
202 stream.XORKeyStream(ciphertext, []byte(value))
202 stream.XORKeyStream(ciphertext, []byte(value))
203
203