crypto

package
v0.0.0-...-80e868b Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	PubKey *[32]byte
	// contains filtered or unexported fields
}

func NewContext

func NewContext() (*Context, error)

func (*Context) Decrypt

func (ctx *Context) Decrypt(peerPubKey *[32]byte, ciphertext []byte) (cleartext []byte, err error)

func (*Context) Encrypt

func (ctx *Context) Encrypt(peerPubKey *[32]byte, cleartext []byte) (ciphertext []byte, err error)

Jump to

Keyboard shortcuts

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