crypto

package
v0.0.0-...-023e8e7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeysExist = errors.New("The key pair already exists")
	ErrNoKeys    = errors.New("The key pair does not exists")
)

Functions

func CreateKeys

func CreateKeys() error

func GetKeys

func GetPrvKey

func GetPrvKey() (ed25519.PrivateKey, error)

func GetPubKey

func GetPubKey() (ed25519.PublicKey, error)

func KeysExists

func KeysExists() bool

func SignContent

func SignContent(content []byte) ([]byte, error)

func SignFile

func SignFile(file string) ([]byte, []byte, error)

func SignFiles

func SignFiles(files []string) (map[string][][]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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