obfuscated2

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDC defines a number of the default DC to use. This value used
	// only if a value from obfuscated2 handshake frame is 0 (default).
	DefaultDC = 2
)

Variables

This section is empty.

Functions

func ClientHandshake

func ClientHandshake(secret []byte, reader io.Reader) (int, cipher.Stream, cipher.Stream, error)

func ServerHandshake

func ServerHandshake(writer io.Writer) (cipher.Stream, cipher.Stream, error)

Types

type Conn

type Conn struct {
	net.Conn

	Encryptor cipher.Stream
	Decryptor cipher.Stream
}

func (Conn) Read

func (c Conn) Read(p []byte) (int, error)

func (Conn) Write

func (c Conn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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