go/src/vendor/golang.org/x/crypto/chacha20poly1305/xchacha20poly1305.go

type xchacha20poly1305

// NewX returns a XChaCha20-Poly1305 AEAD that uses the given 256-bit key.
//
// XChaCha20-Poly1305 is a ChaCha20-Poly1305 variant that takes a longer nonce,
// suitable to be generated randomly without risk of collisions. It should be
// preferred when nonce uniqueness cannot be trivially ensured, or whenever
// nonces are randomly generated.
func NewX(key []byte) (cipher.AEAD, error) {}

func (*xchacha20poly1305) NonceSize() int {}

func (*xchacha20poly1305) Overhead() int {}

func (x *xchacha20poly1305) Seal(dst, nonce, plaintext, additionalData []byte) []byte {}

func (x *xchacha20poly1305) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) {}