浏览代码

don't generate a key share with Curve ID 0 in the ServerHello tests

0 is used as a sentinel value when determining if the key share should
be marshalled.
v1.2.3
Marten Seemann 6 年前
committed by Kris Kwiatkowski
父节点
当前提交
e20b4d2a9a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      handshake_messages_test.go

+ 1
- 1
handshake_messages_test.go 查看文件

@@ -210,7 +210,7 @@ func (*serverHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
}

if rand.Intn(10) > 5 {
m.keyShare.group = CurveID(rand.Intn(30000))
m.keyShare.group = CurveID(rand.Intn(30000) + 1)
m.keyShare.data = randomBytes(rand.Intn(300)+1, rand)
}
if rand.Intn(10) > 5 {


正在加载...
取消
保存