chacha20

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sigma   = [16]byte{'e', 'x', 'p', 'a', 'n', 'd', ' ', '3', '2', '-', 'b', 'y', 't', 'e', ' ', 'k'}
	Tau     = [16]byte{'e', 'x', 'p', 'a', 'n', 'd', ' ', '1', '6', '-', 'b', 'y', 't', 'e', ' ', 'k'}
	Upsilon = [16]byte{'e', 'x', 'p', 'a', 'n', 'd', ' ', '1', '0', '-', 'b', 'y', 't', 'e', ' ', 'k'}
)

Functions

func New

func New(key, nonce []byte, rounds int) *chacha20

Types

type Ret

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

func (*Ret) Base64

func (r *Ret) Base64() string

func (*Ret) Byte

func (r *Ret) Byte() []byte

func (*Ret) Error

func (r *Ret) Error() error

func (*Ret) Hex

func (r *Ret) Hex() string

func (*Ret) Result

func (r *Ret) Result() ([]byte, error)

func (*Ret) String

func (r *Ret) String() string

Jump to

Keyboard shortcuts

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