cshirt2

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAttackDetected = errors.New("active probing attack detected")

ErrAttackDetected denotes an error that can only happen when active probing attempts are made.

View Source
var ErrBadHandshakeMAC = errors.New("bad MAC in handshake")

ErrBadHandshakeMAC denotes a bad handshake mac.

Functions

func Client

func Client(secret []byte, transport net.Conn) (net.Conn, error)

Client negotiates low-level obfuscation as a client, using the new protocol.

func ClientLegacy added in v0.21.0

func ClientLegacy(secret []byte, transport net.Conn) (net.Conn, error)

ClientLegacy negotiates low-level obfuscation as a client, using the legacy protocol.. The server secret must be given so that the client can prove knowledge.

func NewRNG added in v0.21.1

func NewRNG(seed []byte) func() uint64

NewRNG creates a new RNG based on a seed.

func Server

func Server(secret []byte, compatibility bool, transport net.Conn) (net.Conn, error)

Server negotiates obfuscation on a network connection, acting as the server. The secret must be provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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