salsa20

package
v1.0.3019 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCipher

func NewCipher(key, nonce []byte) (cipher.Stream, error)

key is 32 bytes, nonce is 16 bytes.

func NewCipherWithCounter

func NewCipherWithCounter(key, nonce []byte, counter uint64) (cipher.Stream, error)

key is 32 bytes, nonce is 16 bytes.

Types

type Cipher

type Cipher struct {
	// contains filtered or unexported fields
}

func (*Cipher) XORKeyStream

func (c *Cipher) XORKeyStream(dst, src []byte)

Jump to

Keyboard shortcuts

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