obfus

package
v0.0.0-...-b48972f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RC4MaxMasterKeySize = 224
)

Variables

This section is empty.

Functions

func NewAES256

func NewAES256(key []byte) Zvpn.Obfuscate

func NewNothing

func NewNothing(k []byte) Zvpn.Obfuscate

func NewRC4

func NewRC4(mstKey []byte) Zvpn.Obfuscate

masKey的大小不超过RC4MaxMasterKeySize,越大越安全 the size of masKey is not bigger than RC4MaxMasterKeySize bigger mean safer

Types

type DoNothing

type DoNothing struct{}

func (DoNothing) ClientHandShake

func (DoNothing) ClientHandShake(conn Zvpn.Conn) (Zvpn.Encrypter, Zvpn.Decrypter, error)

func (DoNothing) Read

func (DoNothing) Read(conn Zvpn.Conn, dst []byte) (int, error)

func (DoNothing) ServerHandShake

func (DoNothing) ServerHandShake(conn Zvpn.Conn) (Zvpn.Encrypter, Zvpn.Decrypter, error)

func (DoNothing) Write

func (DoNothing) Write(conn Zvpn.Conn, src []byte) (int, error)

Jump to

Keyboard shortcuts

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