Versions in this module Expand all Collapse all v0 v0.0.4 Feb 3, 2023 v0.0.3 Feb 3, 2023 Changes in this version + const HNonceSize + const INonceSize + const KeySize + const NonceSize + const XNonceSize + var ErrInvalidCounter = errors.New("chacha20: block counter is invalid (out of range)") + var ErrInvalidKey = errors.New("chacha20: key length must be KeySize bytes") + var ErrInvalidNonce = errors.New("chacha20: nonce length must be NonceSize/INonceSize/XNonceSize bytes") + func HChaCha(key, nonce []byte, dst *[32]byte) + type Cipher struct + func New(key, nonce []byte) (*Cipher, error) + func (c *Cipher) KeyStream(dst []byte) + func (c *Cipher) ReKey(key, nonce []byte) error + func (c *Cipher) Reset() + func (c *Cipher) Seek(blockCounter uint64) error + func (c *Cipher) XORKeyStream(dst, src []byte)