util

package
v0.0.0-...-4b38b52 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForKey

func AskForKey(r *bufio.Reader) ([]byte, error)

func CheckPanic

func CheckPanic(e error)

func CheckWarn

func CheckWarn(e error) bool

If e is not null will print error and return false

func Dump2File

func Dump2File(d []byte, n string) error

func EntropyBytes

func EntropyBytes(bytes uint8) []byte

Function that uses the entropy pool of /dev/urandom to generate a slice of bytes for: rv := EntropyBits(n) asserts: 0 < n < 256 AND len(rv) == n

func IVfile

func IVfile(r *bufio.Reader) []byte
func Menu(r *bufio.Reader) rune

function that provides a ux for the client to navigate the program and select the mode of operation they would like to preform (enc/decryption)

Types

This section is empty.

Jump to

Keyboard shortcuts

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