client

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ShutdownError     = Error("panda: shutdown requested")
	SyntaxError       = Error("panda failure, syntax error")
	TagContendedError = Error("panda failure, tag contended error")
	StorageError      = Error("panda failure, storage error")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error added in v0.0.3

type Error string

func (Error) Error added in v0.0.3

func (e Error) Error() string

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 *client.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