aboutsummaryrefslogtreecommitdiff
path: root/securecookie.go
diff options
context:
space:
mode:
authorFilippo Valsorda <1225294+FiloSottile@users.noreply.github.com>2019-07-07 06:38:17 +0300
committerMatt Silverlock <matt@eatsleeprepeat.net>2019-07-07 06:38:17 +0300
commit86450627d8e6b88e00ea41f228489b89d08a40de (patch)
tree917c9d3dfa3d1f61457ec4ba848080b6ecf1d56b /securecookie.go
parent629b6af17341019b261eab06da74c418942918d9 (diff)
doc: correct a reference to block size that was meant to be key size (#64)
The AES block size is always the same, it's the key size that selects AES-128, AES-192, or AES-256.
Diffstat (limited to 'securecookie.go')
-rw-r--r--securecookie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/securecookie.go b/securecookie.go
index a34f851..b718ce9 100644
--- a/securecookie.go
+++ b/securecookie.go
@@ -124,7 +124,7 @@ type Codec interface {
// GenerateRandomKey(). It is recommended to use a key with 32 or 64 bytes.
//
// blockKey is optional, used to encrypt values. Create it using
-// GenerateRandomKey(). The key length must correspond to the block size
+// GenerateRandomKey(). The key length must correspond to the key size
// of the encryption algorithm. For AES, used by default, valid lengths are
// 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
// The default encoder used for cookie serialization is encoding/gob.