Versions in this module Expand all Collapse all v0 v0.0.1 Feb 1, 2021 Changes in this version + func BytesToInt64(buf []byte) int64 + func ConnEncrypt(conn net.Conn, metakey []byte, cipherID int) (*es.EncryptedStream, error) + func DecrptogRSA(src []byte, privateKey *rsa.PrivateKey) (res []byte, err error) + func EncyptogRSA(src []byte, publicKey *rsa.PublicKey) (res []byte, err error) + func Int64ToBytes(i int64) []byte + func ListCipher() []string + func LoadCipher(cipher string) (int, error) + func LoadPrivateKey(path string) (privateKey *rsa.PrivateKey, err error) + func LoadPublicKey(path string) (publicKey *rsa.PublicKey, err error) + func NewChaCha20Poly1305Cipher(key []byte) (*es.CryptoAEADCipher, error) + func NewXChaCha20Poly1305Cipher(key []byte) (*es.CryptoAEADCipher, error) + func RSAGenKey(bits int, who string) error + func Socks5DstAddrPort(buf []byte) (*net.TCPAddr, error) + func Socks5Forward(srcConn, dstConn io.ReadWriter) + type Config struct + Cipher string + Client string + PrivateKey string + PublicKey string + Server string + func (c *Config) NewNothing() (n *Nothing, err error) + type Nid [12]byte + func NewNid() Nid + func (n *Nid) UnixNano() int64 + type Nothing struct + CipherID int + LocalAddr *net.TCPAddr + PrivateKey *rsa.PrivateKey + PublicKey *rsa.PublicKey + ServerAddr *net.TCPAddr