Documentation ¶
Overview ¶
Package xchacha20poly1305 creates an AEAD using hchacha, chacha, and poly1305 This allows for randomized nonces to be used in conjunction with chacha.
Index ¶
Constants ¶
View Source
const ( // KeySize is the size of the key used by this AEAD, in bytes. KeySize = 32 // NonceSize is the size of the nonce used with this AEAD, in bytes. NonceSize = 24 // TagSize is the size added from poly1305 TagSize = 16 // MaxPlaintextSize is the max size that can be passed into a single call of Seal MaxPlaintextSize = (1 << 38) - 64 // MaxCiphertextSize is the max size that can be passed into a single call of Open, // this differs from plaintext size due to the tag MaxCiphertextSize = (1 << 38) - 48 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.