Versions in this module Expand all Collapse all v0 v0.0.2-rc1 Jan 27, 2020 v0.0.1 Jan 24, 2020 Changes in this version + const DefaultSupportedCiphers + const DefaultSupportedExchanges + const DefaultSupportedHashes + const ID + var ErrBadSig = errors.New("bad signature") + var ErrClosed = errors.New("connection closed") + var ErrEcho = errors.New("same keys and nonces. one side talking to self") + var ErrMACInvalid = errors.New("MAC verification failed") + var ErrUnsupportedKeyType = errors.New("unsupported key type") + var ErrWrongPeer = errors.New("connected to wrong peer") + var HandshakeTimeout = time.Second * 30 + var SupportedCiphers = DefaultSupportedCiphers + var SupportedExchanges = DefaultSupportedExchanges + var SupportedHashes = DefaultSupportedHashes + func NewETMReader(r io.Reader, s cipher.Stream, mac HMAC) msgio.ReadCloser + func NewETMWriter(w io.Writer, s cipher.Stream, mac HMAC) msgio.WriteCloser + type HMAC struct + type Transport struct + LocalID peer.ID + PrivateKey ci.PrivKey + func New(sk ci.PrivKey) (*Transport, error) + func (sg *Transport) SecureInbound(ctx context.Context, insecure net.Conn) (sec.SecureConn, error) + func (sg *Transport) SecureOutbound(ctx context.Context, insecure net.Conn, p peer.ID) (sec.SecureConn, error)