crypto: Index | Files

package chacha20poly1305

import ""

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 5 packages (graph) and is imported by 38 packages. Updated 2018-03-19. Refresh now. Tools for package owners.