Back to godoc.org

Package scramblesuit

v0.0.0-...-08f4d47
Latest Go to latest

The latest major version is .

Published: Nov 3, 2018 | Licenses: BSD-2-Clause , BSD-3-Clause | Module: git.torproject.org/pluggable-transports/obfs4.git

Overview

Package scramblesuit provides an implementation of the ScrambleSuit obfuscation protocol. The implementation is client only.

Index

Variables

var (
	// ErrNotSupported is the error returned for a unsupported operation.
	ErrNotSupported = errors.New("scramblesuit: operation not supported")

	// ErrInvalidPacket is the error returned when a invalid packet is received.
	ErrInvalidPacket = errors.New("scramblesuit: invalid packet")
)
var (

	// ErrInvalidHandshake is the error returned when the handshake fails.
	ErrInvalidHandshake = errors.New("invalid handshake")
)

type Transport

type Transport struct{}

Transport is the ScrambleSuit implementation of the base.Transport interface.

func (*Transport) ClientFactory

func (t *Transport) ClientFactory(stateDir string) (base.ClientFactory, error)

ClientFactory returns a new ssClientFactory instance.

func (*Transport) Name

func (t *Transport) Name() string

Name returns the name of the ScrambleSuit transport protocol.

func (*Transport) ServerFactory

func (t *Transport) ServerFactory(stateDir string, args *pt.Args) (base.ServerFactory, error)

ServerFactory will one day return a new ssServerFactory instance.

Package Files

  • base.go
  • conn.go
  • handshake_ticket.go
  • handshake_uniformdh.go
  • hkdf_expand.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier