crypto: golang.org/x/crypto/chacha20poly1305/internal/chacha20 Index | Files

package chacha20

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

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

Index

Package Files

chacha_generic.go

func XORKeyStream Uses

func XORKeyStream(out, in []byte, counter *[16]byte, key *[32]byte)

XORKeyStream crypts bytes from in to out using the given key and counters. In and out must overlap entirely or not at all. Counter contains the raw ChaCha20 counter bytes (i.e. block counter followed by nonce).

Package chacha20 imports 1 packages (graph) and is imported by 2 packages. Updated 2017-10-19. Refresh now. Tools for package owners.