Can correctly accept faketls messages

This commit is contained in:
9seconds
2021-03-25 16:22:00 +03:00
parent a3c64c1d1e
commit 4a2d1df384
7 changed files with 305 additions and 22 deletions
@@ -0,0 +1,17 @@
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")
)