This website works better with JavaScript.
首頁
探索
說明
登入
kris
/
th5
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
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
父節點
9919e0e977
當前提交
e20b4d2a9a
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 {
Write
Preview
Loading…
取消
儲存