client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: AGPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShutdownErr = errors.New("panda: shutdown requested")

Functions

This section is empty.

Types

type Panda

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

Panda is a PANDA client that uses our mixnet client library to communicate with the PANDA kaetzchen service.

func New

func New(blobSize int, s *session.Session, log *logging.Logger, recipient, provider string) *Panda

New creates a new Panda instance.

func (*Panda) Exchange

func (p *Panda) Exchange(id, message []byte, shutdown chan struct{}) ([]byte, error)

Exchange performs a PANDA protocol message exchange

func (*Panda) Padding

func (p *Panda) Padding() int

Padding returns the size of the ciphertext blobs to be exchanged.

Jump to

Keyboard shortcuts

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