decryptor

package
v0.0.0-...-17f76c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader ...

func NewReader

func NewReader(
	reader io.Reader,
	nonce [24]byte,
	sharedKey *[32]byte,
) *Reader

NewReader ...

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

Read : reads from underlying io.reader and encryopts the data as it passes it to given inpout do not call directly, use io.Copy and dump read data to a bytes.Buffer

type Writer

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

Writer ...

func NewWriter

func NewWriter(
	writer io.Writer,
	nonce [24]byte,
	sharedKey *[32]byte,
) *Writer

NewWriter ...

func (*Writer) Write

func (d *Writer) Write(p []byte) (n int, err error)

decrypt ..

Jump to

Keyboard shortcuts

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