From 86450627d8e6b88e00ea41f228489b89d08a40de Mon Sep 17 00:00:00 2001 From: Filippo Valsorda <1225294+FiloSottile@users.noreply.github.com> Date: Sun, 7 Jul 2019 00:38:17 -0300 Subject: 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. --- securecookie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3