Standard libraryinternal/x/crypto/chacha20poly1305 Index | Files

package chacha20poly1305

import "internal/x/crypto/chacha20poly1305"

Package chacha20poly1305 implements the ChaCha20-Poly1305 AEAD as specified in RFC 7539.

Index

Constants

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 = 12
)

Functions

func New

func New(key []byte) (cipher.AEAD, error)

New returns a ChaCha20-Poly1305 AEAD that uses the given, 256-bit key.

Source Files

chacha20poly1305.go chacha20poly1305_amd64.go chacha20poly1305_generic.go

Version
v1.12.15
Published
Jan 9, 2020
Platform
linux/amd64
Imports
6 packages
Last checked
3 minutes ago

Tools for package owners.