crypto

package
v0.0.0-...-b16fe82 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

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

func (*PrivateKey) Decrypt

func (priv *PrivateKey) Decrypt(encrypted []byte) ([]byte, error)

func (*PrivateKey) Generate

func (priv *PrivateKey) Generate() error

func (*PrivateKey) Marshal

func (priv *PrivateKey) Marshal() ([]byte, error)

func (*PrivateKey) PublicKey

func (priv *PrivateKey) PublicKey() *PublicKey

func (*PrivateKey) Unmarshal

func (priv *PrivateKey) Unmarshal(data []byte) error

type PublicKey

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

func (*PublicKey) Encrypt

func (pub *PublicKey) Encrypt(raw []byte) ([]byte, error)

func (*PublicKey) Marshal

func (pub *PublicKey) Marshal() ([]byte, error)

func (*PublicKey) MarshalJSON

func (pub *PublicKey) MarshalJSON() (output []byte, err error)

func (*PublicKey) Unmarshal

func (pub *PublicKey) Unmarshal(data []byte) error

func (*PublicKey) UnmarshalJSON

func (pub *PublicKey) UnmarshalJSON(input []byte) error

Jump to

Keyboard shortcuts

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