Versions in this module Expand all Collapse all v1 v1.6.2 Mar 2, 2021 v1.6.1 Mar 2, 2021 Changes in this version + func HashSKey(key []byte) [20]byte + type Conn struct + func WrapConn(conn net.Conn) *Conn + func (c *Conn) Read(p []byte) (n int, err error) + func (c *Conn) Write(p []byte) (n int, err error) + type CryptoMethod uint32 + const PlainText + const RC4 + func (c CryptoMethod) String() string + type Stream struct + func NewStream(rw io.ReadWriter) *Stream + func (s *Stream) HandshakeIncoming(getSKey func(sKeyHash [20]byte) (sKey []byte), ...) (err error) + func (s *Stream) HandshakeOutgoing(sKey []byte, cryptoProvide CryptoMethod, initialPayload []byte) (selected CryptoMethod, err error) + func (s *Stream) Read(p []byte) (n int, err error) + func (s *Stream) Write(p []byte) (n int, err error)