chacha20

package
v3.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2017 License: MIT, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XORKeyStream

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 may be the same slice but otherwise should not overlap. Counter contains the raw ChaCha20 counter bytes (i.e. block counter followed by nonce).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL