Documentation ¶
Index ¶
- func CalcAdler32(input []byte) uint32
- func CheckAdler32(input []byte, l int) bool
- func Kdf(password string, keyLen int) []byte
- type AuthData
- type IProtocol
- func NewAuthAES128MD5(info ssr.ServerInfo) IProtocol
- func NewAuthAES128SHA1(info ssr.ServerInfo) IProtocol
- func NewAuthChainA(info ssr.ServerInfo) IProtocol
- func NewAuthChainB(info ssr.ServerInfo) IProtocol
- func NewAuthSHA1v4(info ssr.ServerInfo) IProtocol
- func NewOrigin(ssr.ServerInfo) IProtocol
- func NewVerifySHA1(info ssr.ServerInfo) IProtocol
- type Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcAdler32 ¶
func CheckAdler32 ¶
Types ¶
type IProtocol ¶
type IProtocol interface { PreEncrypt(data []byte) ([]byte, error) PostDecrypt(data []byte) ([]byte, int, error) PreEncryptPacket(data []byte) ([]byte, error) PostDecryptPacket(data []byte) ([]byte, error) GetOverhead() int AddOverhead(size int) GetData() interface{} SetData(interface{}) }
func NewAuthAES128MD5 ¶
func NewAuthAES128MD5(info ssr.ServerInfo) IProtocol
func NewAuthAES128SHA1 ¶
func NewAuthAES128SHA1(info ssr.ServerInfo) IProtocol
func NewAuthChainA ¶
func NewAuthChainA(info ssr.ServerInfo) IProtocol
func NewAuthChainB ¶
func NewAuthChainB(info ssr.ServerInfo) IProtocol
func NewAuthSHA1v4 ¶
func NewAuthSHA1v4(info ssr.ServerInfo) IProtocol
func NewOrigin ¶
func NewOrigin(ssr.ServerInfo) IProtocol
func NewVerifySHA1 ¶
func NewVerifySHA1(info ssr.ServerInfo) IProtocol
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
func NewProtocol ¶
func (*Protocol) PacketProtocol ¶
func (p *Protocol) PacketProtocol(conn net.PacketConn) *protocolPacket
Click to show internal directories.
Click to hide internal directories.