shadowsocksr

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 15 Imported by: 1

README

shadowsocksR

shadowsocksR is a shadowsocksR library for Go

Use

See 'example/main.go' for detailed usage.

SS Encrypting algorithm

Not support AEAD method yet.

  • aes-128-cfb
  • aes-192-cfb
  • aes-256-cfb
  • aes-128-ctr
  • aes-192-ctr
  • aes-256-ctr
  • aes-128-ofb
  • aes-192-ofb
  • aes-256-ofb
  • des-cfb
  • bf-cfb
  • cast5-cfb
  • rc4-md5
  • chacha20
  • chacha20-ietf
  • salsa20
  • camellia-128-cfb
  • camellia-192-cfb
  • camellia-256-cfb
  • idea-cfb
  • rc2-cfb
  • seed-cfb
  • none
SSR Obfs
  • plain
  • http_simple
  • http_post
  • random_head
  • tls1.2_ticket_auth
SSR Protocol
  • origin
  • verify_sha1 aka. one time auth(OTA)
  • auth_sha1_v4
  • auth_aes128_md5
  • auth_aes128_sha1
  • auth_chain_a
  • auth_chain_b
Credits

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSTCPConn

type SSTCPConn struct {
	net.Conn
	*streamCipher.StreamCipher
	IObfs     obfs.IObfs
	IProtocol protocol.IProtocol
	// contains filtered or unexported fields
}

SSTCPConn the struct that override the net.Conn methods

func NewSSRClient

func NewSSRClient(u *url.URL) (*SSTCPConn, error)

func NewSSTCPConn

func NewSSTCPConn(c net.Conn, cipher *streamCipher.StreamCipher) *SSTCPConn

func (*SSTCPConn) Close

func (c *SSTCPConn) Close() error

func (*SSTCPConn) GetIv

func (c *SSTCPConn) GetIv() (iv []byte)

func (*SSTCPConn) GetKey

func (c *SSTCPConn) GetKey() (key []byte)

func (*SSTCPConn) Read

func (c *SSTCPConn) Read(b []byte) (n int, err error)

func (*SSTCPConn) Write

func (c *SSTCPConn) Write(b []byte) (n int, err error)

Directories

Path Synopsis
leakybuf
Provides leaky buffer, based on the example in Effective Go.
Provides leaky buffer, based on the example in Effective Go.
socks
Package socks implements essential parts of SOCKS protocol.
Package socks implements essential parts of SOCKS protocol.

Jump to

Keyboard shortcuts

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