shadowstream

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_HEADER_AND_IV_SIZE = 256

Variables

View Source
var MethodList = []string{
	"aes-128-ctr",
	"aes-192-ctr",
	"aes-256-ctr",
	"aes-128-cfb",
	"aes-192-cfb",
	"aes-256-cfb",
	"rc4-md5",
	"chacha20-ietf",
	"xchacha20",
	"chacha20",
}

Functions

func NewMethod

func NewMethod(ctx context.Context, methodName string, options C.MethodOptions) (C.Method, error)

func RandomBytesGenerator added in v0.2.4

func RandomBytesGenerator(min, max int) []byte

func RandomStringGenerator added in v0.2.4

func RandomStringGenerator(min, max int) string

Types

type Method

type Method struct {
	// contains filtered or unexported fields
}

func NewMethod_L added in v0.2.4

func NewMethod_L(ctx context.Context, methodName string, options C.MethodOptions) (*Method, error)

func (*Method) DialConn

func (m *Method) DialConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error)

func (*Method) DialEarlyConn

func (m *Method) DialEarlyConn(conn net.Conn, destination M.Socksaddr) net.Conn

func (*Method) DialPacketConn

func (m *Method) DialPacketConn(conn net.Conn) N.NetPacketConn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL