Skip to content

Commit

Permalink
doc: correct a reference to block size that was meant to be key size (#…
Browse files Browse the repository at this point in the history
…64)

The AES block size is always the same, it's the key size that selects AES-128, AES-192, or AES-256.
  • Loading branch information
FiloSottile authored and elithrar committed Jul 7, 2019
1 parent 629b6af commit 8645062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securecookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8645062

Please sign in to comment.