Versions in this module Expand all Collapse all v0 v0.1.1 Feb 8, 2015 Changes in this version + var ShutdownErr = errors.New("panda: shutdown requested") + func IsAcceptableSecretString(s string) bool + func NewSecretString(rand io.Reader) string + type Card struct + func ParseCard(s string) (card Card, ok bool) + func (c Card) IsRed() bool + func (c Card) Number() int + func (c Card) String() string + type CardStack struct + NumDecks int + func (cs *CardStack) Add(c Card) bool + func (cs *CardStack) Canonicalise() *CardStack + func (cs *CardStack) MinimumDecks() int + func (cs *CardStack) Remove(c Card) bool + type HTTPMeetingPlace struct + TorAddress string + URL string + func (hmp *HTTPMeetingPlace) Exchange(log func(string, ...interface{}), id, message []byte, shutdown chan struct{}) ([]byte, error) + func (hmp *HTTPMeetingPlace) Padding() int + type KeyExchange struct + Log func(string, ...interface{}) + ShutdownChan chan struct{} + Testing bool + func NewKeyExchange(rand io.Reader, meetingPlace MeetingPlace, sharedSecret *SharedSecret, ...) (*KeyExchange, error) + func UnmarshalKeyExchange(rand io.Reader, meetingPlace MeetingPlace, serialised []byte) (*KeyExchange, error) + func (kx *KeyExchange) Marshal() []byte + func (kx *KeyExchange) Run() ([]byte, error) + type MeetingPlace interface + Exchange func(log func(string, ...interface{}), id, message []byte, shutdown chan struct{}) ([]byte, error) + Padding func() int + type SharedSecret struct + Cards CardStack + Day int + Hours int + Minutes int + Month int + Secret string + Year int + type SimpleMeetingPlace struct + func NewSimpleMeetingPlace() *SimpleMeetingPlace + func (smp *SimpleMeetingPlace) Exchange(log func(string, ...interface{}), id, message []byte, shutdown chan struct{}) ([]byte, error) + func (smp *SimpleMeetingPlace) Padding() int + type Suit int + const SuitClubs + const SuitDimonds + const SuitHearts + const SuitSpades