packet

package
v0.0.0-...-50051f8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(headers interface{}, file string, destFolder string, b cipher.Block, salt string) (string, error)

* Create creates an encrypted packet with provided headers and file content

func CreateFromStreams

func CreateFromStreams(headers interface{}, r io.Reader, w io.Writer, b cipher.Block) error

func Extract

func Extract(source string, dest string, b cipher.Block) error

func ExtractFromStream

func ExtractFromStream(r io.Reader, w io.Writer, b cipher.Block) (n int64, err error)
func Head(file string, headers interface{}, b cipher.Block) error

func HeadFromStream

func HeadFromStream(r io.Reader, headers interface{}, b cipher.Block) error

Types

type PacketEncryption

type PacketEncryption struct {
	Secret []string
}

Jump to

Keyboard shortcuts

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