client

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0, AGPL-3.0 Imports: 9 Imported by: 0

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

type Error string

func (Error) Error

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 interface{}) ([]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