mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:54:02 +03:00
FILE / ScuroNeko/mtg
mtglib/internal/faketls/clienthello/init.go
Исходный файл и его история в репозитории.
18 lines
328 B
Go
18 lines
328 B
Go
package clienthello
|
|
|
|
import "errors"
|
|
|
|
const (
|
|
RandomLen = 32
|
|
RandomOffset = 6
|
|
SessionIDOffset = RandomOffset + RandomLen
|
|
MinLen = SessionIDOffset + 1
|
|
|
|
HandshakeTypeClient = 0x01
|
|
)
|
|
|
|
var (
|
|
ErrBadDigest = errors.New("bad digest")
|
|
ErrAntiReplayAttack = errors.New("antireplay attack was detected")
|
|
)
|