Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var ErrClosed = errors.New("connection closed") + var ErrMACInvalid = errors.New("MAC verification failed") + var ErrUnsupportedKeyType = errors.New("unsupported key type") + var SupportedCiphers = "AES-256,AES-128,Blowfish" + var SupportedExchanges = "P-256,P-224,P-384,P-521" + var SupportedHashes = "SHA256,SHA512" + 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 Session interface + Close func() error + LocalPeer func() peer.ID + LocalPrivateKey func() ci.PrivKey + ReadWriter func() msgio.ReadWriteCloser + RemotePeer func() peer.ID + RemotePublicKey func() ci.PubKey + type SessionGenerator struct + LocalID peer.ID + PrivateKey ci.PrivKey + func (sg *SessionGenerator) NewSession(ctx context.Context, insecure io.ReadWriter) (Session, error)