Documentation
¶
Index ¶
- Constants
- func ClientHandshake(conn net.Conn, hostPort string) error
- func ClientHandshakeTimeout(conn net.Conn, hostPort string, timeout time.Duration) error
- func EvpBytesToKey(password string, keyLen int) []byte
- func RegisterCipher(name string, c cipherInfo)
- func ServerHandshake(conn net.Conn) (hostPort string, err error)
- func ServerHandshakeTimeout(conn net.Conn, timeout time.Duration) (hostPort string, err error)
- type Conn
- type Cryptor
- type Listener
Constants ¶
View Source
const ( Decrypt = 0 Encrypt = 1 )
Variables ¶
This section is empty.
Functions ¶
func ClientHandshakeTimeout ¶
func EvpBytesToKey ¶
func RegisterCipher ¶
func RegisterCipher(name string, c cipherInfo)
Types ¶
type Conn ¶
func DialTimeout ¶
type Cryptor ¶
type Listener ¶
func ListenTimeout ¶
Click to show internal directories.
Click to hide internal directories.