Documentation ¶
Index ¶
- func KeyID(pkey []byte) (id []byte, err error)
- type ClientPeer
- func (peer *ClientPeer) Close() error
- func (peer *ClientPeer) HandShake() error
- func (peer *ClientPeer) Read(p []byte) (n int, err error)
- func (peer *ClientPeer) ReadBlock() (buf []byte, err error)
- func (peer *ClientPeer) State() State
- func (peer *ClientPeer) Write(p []byte) (n int, err error)
- func (peer *ClientPeer) WriteBlock(p []byte) (n int, err error)
- type KeyPair
- type KeyPool
- type Nonce
- type Peer
- type ServerPeer
- func (peer *ServerPeer) Close() error
- func (peer *ServerPeer) HandShake() error
- func (peer *ServerPeer) Read(p []byte) (n int, err error)
- func (peer *ServerPeer) ReadBlock() (buf []byte, err error)
- func (peer *ServerPeer) State() State
- func (peer *ServerPeer) Write(p []byte) (n int, err error)
- func (peer *ServerPeer) WriteBlock(p []byte) (n int, err error)
- type State
- type Transport
- type UDPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientPeer ¶
type ClientPeer struct { C *[32]byte Cs *[32]byte S *[32]byte EC *[32]byte ECs *[32]byte // contains filtered or unexported fields }
func (*ClientPeer) Close ¶
func (peer *ClientPeer) Close() error
func (*ClientPeer) HandShake ¶
func (peer *ClientPeer) HandShake() error
func (*ClientPeer) State ¶
func (peer *ClientPeer) State() State
func (*ClientPeer) WriteBlock ¶
type KeyPool ¶
type KeyPool struct {
// contains filtered or unexported fields
}
func NewKeyPool ¶
func NewKeyPool() *KeyPool
type Peer ¶
type Peer interface { io.ReadWriteCloser HandShake() error State() State }
func NewClientPeer ¶
type ServerPeer ¶
type ServerPeer struct { S *[32]byte Ss *[32]byte C *[32]byte // contains filtered or unexported fields }
func (*ServerPeer) Close ¶
func (peer *ServerPeer) Close() error
func (*ServerPeer) HandShake ¶
func (peer *ServerPeer) HandShake() error
func (*ServerPeer) State ¶
func (peer *ServerPeer) State() State
func (*ServerPeer) WriteBlock ¶
Click to show internal directories.
Click to hide internal directories.