tool

package
v0.0.0-...-96ed9a0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32ToBytes

func Int32ToBytes(i int32) ([]byte, error)

func MakeAesKey

func MakeAesKey(password, salt []byte, scryptIterations, aesKeySize int) ([]byte, error)

func MakeCipherBlock

func MakeCipherBlock(password, salt []byte, iterations, aesKeySize int) (cipher.Block, error)

func RandomBytes

func RandomBytes(size int) ([]byte, error)

func ReadBytes

func ReadBytes(r io.Reader, size int) ([]byte, error)

func ReadInt32

func ReadInt32(r io.Reader) (b []byte, i int32, err error)

Types

type ReadCloser

type ReadCloser struct {
	io.Reader
}

func (*ReadCloser) Close

func (rc *ReadCloser) Close() error

No effect

type WriterWithMeta

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

func NewWriterWithMeta

func NewWriterWithMeta(meta io.WriterTo, w io.Writer) *WriterWithMeta

func (*WriterWithMeta) Write

func (wr *WriterWithMeta) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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