Go: internal/x/crypto/chacha20poly1305 Index | Files

package chacha20poly1305

import "internal/x/crypto/chacha20poly1305"

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


Package Files

chacha20poly1305.go chacha20poly1305_amd64.go chacha20poly1305_generic.go


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.

Package chacha20poly1305 imports 6 packages (graph) and is imported by 2 packages. Updated 2019-06-13. Refresh now. Tools for package owners.