xsalsa20

package
v0.0.0-...-537daca Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2012 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package xsalsa20 implements XSalsa20 stream cipher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stream

func Stream(c []byte, n *[24]byte, k *[32]byte)

Stream generates XSalsa20 stream into the byte slice c from 24-byte nonce n and 32-byte key k.

func Xor

func Xor(c, m []byte, n *[24]byte, k *[32]byte)

Xor XORs plain-text byte slice m with XSalsa20 stream generated from 24-byte nonce n and 32-byte key k, and puts the result into byte slice c, which must have length equal to or greater than the length of m.

Types

This section is empty.

Jump to

Keyboard shortcuts

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