Back to godoc.org
github.com/katzenpost/panda/crypto

package crypto

v0.0.7
Latest Go to latest
Published: May 4, 2020 | Licenses: AGPL-3.0, BSD-3-Clause | Module: github.com/katzenpost/panda

Index

Variables

var ShutdownErrMessage = "panda: shutdown requested"

type KeyExchange

type KeyExchange struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewKeyExchange

func NewKeyExchange(rand io.Reader, log *logging.Logger, meetingPlace MeetingPlace, sharedSecret []byte, kxBytes []byte, contactID uint64, pandaChan chan PandaUpdate, shutdownChan chan struct{}) (*KeyExchange, error)

func UnmarshalKeyExchange

func UnmarshalKeyExchange(rand io.Reader, log *logging.Logger, meetingPlace MeetingPlace, serialised []byte) (*KeyExchange, error)

func (*KeyExchange) Marshal

func (kx *KeyExchange) Marshal() []byte

func (*KeyExchange) Run

func (kx *KeyExchange) Run()

type MeetingPlace

type MeetingPlace interface {
	Padding() int
	Exchange(id, message []byte, shutdown chan struct{}) ([]byte, error)
}

type PandaUpdate

type PandaUpdate struct {
	ID         uint64
	Err        error
	Serialised []byte
	Result     []byte
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier