crypto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

func CreateKeyPair

func CreateKeyPair() (*Key, error)

func NewFromStrings

func NewFromStrings(pub, priv string) (*Key, error)

func (*Key) GetPrivString

func (k *Key) GetPrivString() string

func (*Key) GetPubString

func (k *Key) GetPubString() string

func (*Key) SetPrivString

func (k *Key) SetPrivString(priv string) error

func (*Key) SetPubString

func (k *Key) SetPubString(pub string) error

func (*Key) Sign

func (k *Key) Sign(hash []byte) (string, error)

func (*Key) Verify

func (k *Key) Verify(hash []byte, signature string) error

Jump to

Keyboard shortcuts

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