Versions in this module Expand all Collapse all v0 v0.2.7 Jul 12, 2021 Changes in this version + type Conn struct + func NewConn(conn net.Conn, dialDest *ecdsa.PublicKey) *Conn + func (c *Conn) Close() error + func (c *Conn) Handshake(prv *ecdsa.PrivateKey) (*ecdsa.PublicKey, error) + func (c *Conn) InitWithSecrets(sec Secrets) + func (c *Conn) Read() (code uint64, data []byte, wireSize int, err error) + func (c *Conn) SetDeadline(time time.Time) error + func (c *Conn) SetReadDeadline(time time.Time) error + func (c *Conn) SetSnappy(snappy bool) + func (c *Conn) SetWriteDeadline(time time.Time) error + func (c *Conn) Write(code uint64, data []byte) (uint32, error) + type Secrets struct + AES []byte + EgressMAC hash.Hash + IngressMAC hash.Hash + MAC []byte