package obfuscated2
Import Path
github.com/gotd/td/internal/mtproxy/obfuscated2 (on go.dev)
Dependency Relation
imports 7 packages, and imported by 2 packages
Involved Source Files
Package obfuscated2 contains obfuscated2 implementation.
keys.go
keys_util.go
obfuscated2.go
server.go
Package-Level Type Names (total 3, in which 2 are exported)
Metadata represents metadata received from header.
DC uint16
Protocol [4]byte
func Accept(conn io.ReadWriter, secret []byte) (io.ReadWriter, Metadata, error)
Obfuscated2 implements obfuscated2 obfuscation protocol.
conn io.ReadWriter
keys keys
keys.decrypt cipher.Stream
keys.encrypt cipher.Stream
keys.header []byte
rand io.Reader
Handshake sends obfuscated2 header.
Read implements io.Reader.
Write implements io.Writer.
(*Obfuscated2) createStreams(init, secret []byte) error
*Obfuscated2 : github.com/gotd/td/internal/mtproxy/obfuscator.Obfuscator
*Obfuscated2 : internal/bisect.Writer
*Obfuscated2 : io.Reader
*Obfuscated2 : io.ReadWriter
*Obfuscated2 : io.Writer
*Obfuscated2 : crypto/tls.transcriptHash
func NewObfuscated2(r io.Reader, conn io.ReadWriter) *Obfuscated2
Package-Level Functions (total 6, in which 2 are exported)
Accept creates new io.ReadWriter for server-side deobfuscation.
NewObfuscated2 creates new Obfuscated2.
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |