Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeySize = chacha20poly1305.KeySize // MaxPlaintextSize is set to 64 MB, which is a fairly generous limit. The implementation in x/crypto/xchacha20poly1305 has a plaintext limit to 256 GB. // We generally only handle data that is stored within a cookie or a session store, i.e. it should be reasonably small. // In most cases the data is around 4 KB or less, mostly depending on the length of the tokens returned from the identity provider. MaxPlaintextSize = 64 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypter ¶
func NewCrypter ¶
Click to show internal directories.
Click to hide internal directories.