crypto: golang.org/x/crypto/chacha20poly1305 Index | Files | Directories

package chacha20poly1305

import "golang.org/x/crypto/chacha20poly1305"

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

Index

Package Files

chacha20poly1305.go chacha20poly1305_amd64.go chacha20poly1305_generic.go

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
)

func New Uses

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

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

Directories

PathSynopsis
internal/chacha20Package ChaCha20 implements the core ChaCha20 function as specified in https://tools.ietf.org/html/rfc7539#section-2.3.

Package chacha20poly1305 imports 5 packages (graph) and is imported by 14 packages. Updated 2017-04-26. Refresh now. Tools for package owners.