Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ShutdownErrMessage = "panda: shutdown requested"
Functions ¶
This section is empty.
Types ¶
type KeyExchange ¶
func NewKeyExchange ¶
func NewKeyExchange(rand io.Reader, log *logging.Logger, meetingPlace MeetingPlace, sharedRandom []byte, sharedSecret []byte, kxBytes []byte, contactID uint64, pandaChan chan PandaUpdate, shutdownChan <-chan interface{}) (*KeyExchange, error)
func UnmarshalKeyExchange ¶
func UnmarshalKeyExchange(rand io.Reader, log *logging.Logger, meetingPlace MeetingPlace, serialised []byte, contactID uint64, pandaChan chan PandaUpdate, shutdownChan <-chan interface{}) (*KeyExchange, error)
func (*KeyExchange) Marshal ¶
func (kx *KeyExchange) Marshal() []byte
func (*KeyExchange) Run ¶
func (kx *KeyExchange) Run()
func (*KeyExchange) SetSharedRandom ¶
func (kx *KeyExchange) SetSharedRandom(srv []byte)
SetSharedRandom updates the KeyExchange SharedRandom and resets the protocol state back to KeyExchange_INIT. The caller MUST halt an running KeyExchange before calling SetSharedRandom.
type MeetingPlace ¶
Click to show internal directories.
Click to hide internal directories.