Versions in this module Expand all Collapse all v0 v0.0.0 Feb 11, 2020 Changes in this version + const KeySize + const NonceSize + const Overhead + var ErrInvalidTagSize = errors.New("chacha20poly1305: invalid tag size") + var ErrOpen = errors.New("chacha20poly1305: message authentication failed") + type ChaCha20Poly1305 struct + func New(key []byte, tagSize uint8) (*ChaCha20Poly1305, error) + func (a *ChaCha20Poly1305) NonceSize() int + func (a *ChaCha20Poly1305) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) + func (a *ChaCha20Poly1305) Overhead() int + func (a *ChaCha20Poly1305) Reset() + func (a *ChaCha20Poly1305) Seal(dst, nonce, plaintext, additionalData []byte) []byte