panda: github.com/katzenpost/panda/crypto Index | Files | Directories

package crypto

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

Index

Package Files

panda.go

Variables

var ShutdownErrMessage = "panda: shutdown requested"

type KeyExchange Uses

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

func NewKeyExchange Uses

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 Uses

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

func (*KeyExchange) Marshal Uses

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

func (*KeyExchange) Run Uses

func (kx *KeyExchange) Run()

type MeetingPlace Uses

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

type PandaUpdate Uses

type PandaUpdate struct {
    ID         uint64
    Err        error
    Serialised []byte
    Result     []byte
}

Directories

PathSynopsis
protoPackage panda is a generated protocol buffer package.
rijndael

Package crypto imports 11 packages (graph) and is imported by 2 packages. Updated 2019-09-17. Refresh now. Tools for package owners.