This website works better with JavaScript.
Home
Explore
Help
Sign In
kris
/
th5
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
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 years ago
committed by
Kris Kwiatkowski
parent
9919e0e977
commit
e20b4d2a9a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
handshake_messages_test.go
+ 1
- 1
handshake_messages_test.go
View File
@@ -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…
Cancel
Save