Documentation ¶
Overview ¶
R.I.P Shadowsocks
Index ¶
- Constants
- func ChunkKeyGenerator(iv []byte) func() []byte
- func HeaderKeyGenerator(key []byte, iv []byte) func() []byte
- func PasswordToCipherKey(password string, keySize int) []byte
- type AesCfb
- type Authenticator
- type ChaCha20
- type ChunkReader
- type Cipher
- type Config
- type KeyGenerator
- type Request
- type Server
- type ServerFactory
Constants ¶
View Source
const ( AddrTypeIPv4 = 1 AddrTypeIPv6 = 4 AddrTypeDomain = 3 )
View Source
const (
AuthSize = 10
)
Variables ¶
This section is empty.
Functions ¶
func ChunkKeyGenerator ¶ added in v1.9.1
func HeaderKeyGenerator ¶ added in v1.9.1
func PasswordToCipherKey ¶ added in v1.9.1
Types ¶
type AesCfb ¶ added in v1.9.1
type AesCfb struct {
KeyBytes int
}
func (*AesCfb) NewDecodingStream ¶ added in v1.9.1
type Authenticator ¶ added in v1.9.1
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶ added in v1.9.1
func NewAuthenticator(keygen KeyGenerator) *Authenticator
func (*Authenticator) Authenticate ¶ added in v1.9.1
func (this *Authenticator) Authenticate(auth []byte, data []byte) []byte
type ChaCha20 ¶ added in v1.9.1
type ChaCha20 struct {
IVBytes int
}
func (*ChaCha20) NewDecodingStream ¶ added in v1.9.1
type ChunkReader ¶ added in v1.9.1
type ChunkReader struct {
// contains filtered or unexported fields
}
func NewChunkReader ¶ added in v1.9.1
func NewChunkReader(reader io.Reader, auth *Authenticator) *ChunkReader
func (*ChunkReader) Release ¶ added in v1.11.1
func (this *ChunkReader) Release()
type KeyGenerator ¶ added in v1.9.1
type KeyGenerator func() []byte
type Request ¶ added in v1.9.1
func ReadRequest ¶ added in v1.9.1
func (*Request) DetachUDPPayload ¶ added in v1.12.1
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config *Config, packetDispatcher dispatcher.PacketDispatcher, meta *proxy.InboundHandlerMeta) *Server
type ServerFactory ¶ added in v1.17.1
type ServerFactory struct{}
func (*ServerFactory) Create ¶ added in v1.17.1
func (this *ServerFactory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
func (*ServerFactory) StreamCapability ¶ added in v1.17.1
func (this *ServerFactory) StreamCapability() internet.StreamConnectionType
Click to show internal directories.
Click to hide internal directories.