Small subtle optimizations of faketls

This commit is contained in:
9seconds
2021-04-06 11:09:37 +03:00
parent a3bae795c4
commit 54a7c6a2a5
2 changed files with 9 additions and 9 deletions
+5 -1
View File
@@ -1,6 +1,9 @@
package faketls
import "errors"
import (
"bytes"
"errors"
)
const (
RandomLen = 32
@@ -34,4 +37,5 @@ var (
0x00, 0x1d, // x25519 curve
0x00, 0x20, // 32 bytes of key
}
clientHelloEmptyRandom = bytes.Repeat([]byte{0}, RandomLen)
)