crypto: Index | Files

package chacha20

import ""

Package ChaCha20 implements the core ChaCha20 function as specified in


Package Files


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-12-01. Refresh now. Tools for package owners.