obfuscated2

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 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 {
	essentials.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