chacha20poly1305 - ActiveState ActiveGo 1.8
...

Package chacha20poly1305

import "golang.org/x/crypto/chacha20poly1305"
Overview
Index
Subdirectories

Overview ▾

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

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

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

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

Subdirectories

Name Synopsis
..