panda: github.com/katzenpost/panda/client Index | Files

package client

import "github.com/katzenpost/panda/client"

Index

Package Files

client.go

Constants

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")
)

type Error Uses

type Error string

func (Error) Error Uses

func (e Error) Error() string

type Panda Uses

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 Uses

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

New creates a new Panda instance.

func (*Panda) Exchange Uses

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

Exchange performs a PANDA protocol message exchange

func (*Panda) Padding Uses

func (p *Panda) Padding() int

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

Package client imports 9 packages (graph) and is imported by 2 packages. Updated 2019-11-02. Refresh now. Tools for package owners.