crypto/tls: enable X25519 by default.

Since this changes the offered curves in the ClientHello, all the test
data needs to be updated too.

Change-Id: I227934711104349c0f0eab11d854e5a2adcbc363
Reviewed-on: https://go-review.googlesource.com/30825
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Adam Langley 2016-10-11 15:08:35 -07:00
parent 6bcda018f7
commit 46e9439117
63 changed files with 2757 additions and 2875 deletions

View file

@ -1,19 +1,20 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 8b 01 00 00 87 03 03 00 00 00 00 00 |................|
00000000 16 03 01 00 8d 01 00 00 89 03 03 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 28 c0 2f |.............(./|
00000030 c0 2b c0 30 c0 2c c0 27 c0 13 c0 23 c0 09 c0 14 |.+.0.,.'...#....|
00000040 c0 0a 00 9c 00 9d 00 3c 00 2f 00 35 c0 12 00 0a |.......<./.5....|
00000050 00 05 c0 11 c0 07 01 00 00 36 00 05 00 05 01 00 |.........6......|
00000060 00 00 00 00 0a 00 08 00 06 00 17 00 18 00 19 00 |................|
00000070 0b 00 02 01 00 00 0d 00 0e 00 0c 04 01 04 03 05 |................|
00000080 01 05 03 02 01 02 03 ff 01 00 01 00 00 12 00 00 |................|
00000050 00 05 c0 11 c0 07 01 00 00 38 00 05 00 05 01 00 |.........8......|
00000060 00 00 00 00 0a 00 0a 00 08 00 1d 00 17 00 18 00 |................|
00000070 19 00 0b 00 02 01 00 00 0d 00 0e 00 0c 04 01 04 |................|
00000080 03 05 01 05 03 02 01 02 03 ff 01 00 01 00 00 12 |................|
00000090 00 00 |..|
>>> Flow 2 (server to client)
00000000 16 03 03 00 59 02 00 00 55 03 03 0d aa 10 87 54 |....Y...U......T|
00000010 c4 b8 34 96 39 d5 bb 7f 82 8f 01 74 3e ef fc 88 |..4.9......t>...|
00000020 b9 b0 02 d5 a0 98 b6 4c fe d1 bb 20 37 30 b4 1e |.......L... 70..|
00000030 6b a2 33 9f 7a eb 4e 9c 59 de 57 5d 2b a7 80 a5 |k.3.z.N.Y.W]+...|
00000040 f5 e7 64 3d fa 2d 91 02 74 8c e2 f2 c0 2f 00 00 |..d=.-..t..../..|
00000000 16 03 03 00 59 02 00 00 55 03 03 bf 1a 08 27 45 |....Y...U.....'E|
00000010 0a 77 6e 2a 2e 86 6d 5f 90 13 84 99 ff d5 3e 7a |.wn*..m_......>z|
00000020 39 87 cf d5 6f 68 8e 68 7d 47 59 20 79 cd 8b 6a |9...oh.h}GY y..j|
00000030 70 88 0b 0d f3 d4 08 f3 99 2f c2 4a b3 f3 a7 89 |p......../.J....|
00000040 ab f6 0c 91 9a f0 b1 aa 2f 27 3e 92 c0 2f 00 00 |......../'>../..|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
00000060 03 02 59 0b 00 02 55 00 02 52 00 02 4f 30 82 02 |..Y...U..R..O0..|
00000070 4b 30 82 01 b4 a0 03 02 01 02 02 09 00 e8 f0 9d |K0..............|
@ -53,44 +54,40 @@
00000290 77 8d 0c 1c f1 0f a1 d8 40 83 61 c9 4c 72 2b 9d |w.......@.a.Lr+.|
000002a0 ae db 46 06 06 4d f4 c1 b3 3e c0 d1 bd 42 d4 db |..F..M...>...B..|
000002b0 fe 3d 13 60 84 5c 21 d3 3b e9 fa e7 16 03 03 00 |.=.`.\!.;.......|
000002c0 cd 0c 00 00 c9 03 00 17 41 04 c9 6b 86 80 19 10 |........A..k....|
000002d0 ce 09 18 3b 64 f8 b1 a2 ab 7c 93 90 e5 be a4 34 |...;d....|.....4|
000002e0 7f df b4 54 89 93 8b 60 fb 5d b3 05 74 65 dc b3 |...T...`.]..te..|
000002f0 c8 86 71 7d bf 16 bc 96 95 47 43 d8 f0 a3 88 b7 |..q}.....GC.....|
00000300 dc a2 0d c4 86 65 f3 d4 5e 69 04 01 00 80 69 45 |.....e..^i....iE|
00000310 c7 29 bf 55 23 d2 56 03 68 dd d1 d5 d4 fd 0f a7 |.).U#.V.h.......|
00000320 27 93 fc 63 57 a1 64 fc 0b 5e 83 72 19 73 2e 48 |'..cW.d..^.r.s.H|
00000330 89 10 33 db ec bb d9 ad f6 55 0d 28 df b6 3e 3c |..3......U.(..><|
00000340 d4 c7 29 d3 49 58 be e3 b6 9a 1f e9 6b 13 df 7b |..).IX......k..{|
00000350 ab 05 d1 b3 c4 2f 50 9e 6b d6 91 91 07 17 0c 3d |...../P.k......=|
00000360 2e 10 c6 02 43 b3 aa 52 70 0a 02 bd a6 e5 7c 92 |....C..Rp.....|.|
00000370 b0 3a f4 c2 e6 cd f5 b4 b3 31 5f 79 92 65 5d cc |.:.......1_y.e].|
00000380 8b fa bd f5 1e 0a bc a8 b4 53 fe a6 94 76 16 03 |.........S...v..|
00000390 03 00 04 0e 00 00 00 |.......|
000002c0 ac 0c 00 00 a8 03 00 1d 20 e3 0e 3b be 13 b7 01 |........ ..;....|
000002d0 32 0e bf ab ee 5d ea e1 79 f4 16 34 b3 ce 5d e4 |2....]..y..4..].|
000002e0 8b 4d a2 ef 83 78 b2 ab 60 04 01 00 80 31 3f da |.M...x..`....1?.|
000002f0 24 88 42 84 73 4e 0b 80 7c d8 a1 c0 c2 c8 b6 27 |$.B.sN..|......'|
00000300 df 41 23 0a 30 91 3f 01 cc d2 8b 66 03 4b 63 c1 |.A#.0.?....f.Kc.|
00000310 02 18 b5 44 77 ae 7e 7d eb b5 5c 76 fc c9 c5 ec |...Dw.~}..\v....|
00000320 27 71 a1 09 c1 34 6f 48 10 4d da e0 21 4b 30 32 |'q...4oH.M..!K02|
00000330 9b 71 34 6b 6e 79 a3 80 2c 2b 85 5d 3c 44 4f 64 |.q4kny..,+.]<DOd|
00000340 f3 d1 85 ad 03 41 8c 84 ff ab 95 0e d2 8d d0 8b |.....A..........|
00000350 31 78 f7 78 06 56 97 28 49 6c 01 0f 1e a7 b4 be |1x.x.V.(Il......|
00000360 b0 88 7a 44 68 f3 fc a2 1d 36 a6 e0 cc 16 03 03 |..zDh....6......|
00000370 00 04 0e 00 00 00 |......|
>>> Flow 3 (client to server)
00000000 16 03 03 00 46 10 00 00 42 41 04 1e 18 37 ef 0d |....F...BA...7..|
00000010 19 51 88 35 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd |.Q.5uq..T[....g.|
00000020 a7 24 20 3e b2 56 1c ce 97 28 5e f8 2b 2d 4f 9e |.$ >.V...(^.+-O.|
00000030 f1 07 9f 6c 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 |...lK[.V.2B.X..I|
00000040 a6 b5 68 1a 41 03 56 6b dc 5a 89 14 03 03 00 01 |..h.A.Vk.Z......|
00000050 01 16 03 03 00 28 00 00 00 00 00 00 00 00 3e 37 |.....(........>7|
00000060 59 15 7b c7 5f aa 2f 10 6b d1 00 f1 a0 64 2b c9 |Y.{._./.k....d+.|
00000070 3b 38 c1 92 63 b8 9b bf ec 01 b7 a5 91 52 |;8..c........R|
00000000 16 03 03 00 25 10 00 00 21 20 2f e5 7d a3 47 cd |....%...! /.}.G.|
00000010 62 43 15 28 da ac 5f bb 29 07 30 ff f6 84 af c4 |bC.(.._.).0.....|
00000020 cf c2 ed 90 99 5f 58 cb 3b 74 14 03 03 00 01 01 |....._X.;t......|
00000030 16 03 03 00 28 00 00 00 00 00 00 00 00 8d 66 75 |....(.........fu|
00000040 38 f8 b0 d3 0d 81 49 01 73 1e eb 1d 00 71 08 d9 |8.....I.s....q..|
00000050 87 20 83 14 4c 54 f1 60 61 4d 19 53 42 |. ..LT.`aM.SB|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 28 96 3b 97 5d 87 |..........(.;.].|
00000010 1a de f5 b7 11 86 32 12 eb 41 59 8a 29 b5 20 bd |......2..AY.). .|
00000020 35 7b 47 c7 94 6e c4 d4 4e 58 08 d2 9c 05 05 8f |5{G..n..NX......|
00000030 4e 94 ac |N..|
00000000 14 03 03 00 01 01 16 03 03 00 28 23 7e 00 58 a6 |..........(#~.X.|
00000010 9c 0b ad 95 ad 99 7e d0 ff e3 ef 7c 14 c8 49 39 |......~....|..I9|
00000020 0e 46 24 16 22 a7 94 51 9c c6 8d 8a cb f1 66 14 |.F$."..Q......f.|
00000030 99 fd 15 |...|
>>> Flow 5 (client to server)
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 cb cd d9 |................|
00000010 59 33 0a f1 59 9f 21 86 15 ed cd 3d 5f 21 4c dd |Y3..Y.!....=_!L.|
00000020 21 0b 54 |!.T|
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 94 e4 ff |................|
00000010 cd 27 dd 2b c7 3d ee c1 95 b9 85 e9 46 68 2e 68 |.'.+.=......Fh.h|
00000020 f2 4e 10 |.N.|
>>> Flow 6 (server to client)
00000000 16 03 03 00 1c 96 3b 97 5d 87 1a de f6 0c 74 11 |......;.].....t.|
00000010 ff 59 13 7f f2 0d 64 df 38 d9 2b 37 2c 9e 0d eb |.Y....d.8.+7,...|
00000020 2a |*|
00000000 16 03 03 00 1c 23 7e 00 58 a6 9c 0b ae 3b 83 b7 |.....#~.X....;..|
00000010 9d 40 bc d7 47 ea a8 f4 4e 37 50 e3 d7 21 92 8d |.@..G...N7P..!..|
00000020 b7 |.|
>>> Flow 7 (client to server)
00000000 15 03 03 00 1a 00 00 00 00 00 00 00 02 59 28 2e |.............Y(.|
00000010 9f a2 16 fd 1b 4a e8 97 72 a6 a3 ed 7d 63 4d 15 |.....J..r...}cM.|
00000020 03 03 00 1a 00 00 00 00 00 00 00 03 ca db 71 6b |..............qk|
00000030 e8 54 f2 da 95 0a 25 e0 c6 70 f0 d9 62 bd |.T....%..p..b.|
00000000 15 03 03 00 1a 00 00 00 00 00 00 00 02 98 b4 1c |................|
00000010 2c c3 7c a1 9c 8c 09 b0 0a d1 d5 f4 99 ed 64 15 |,.|...........d.|
00000020 03 03 00 1a 00 00 00 00 00 00 00 03 16 2a 34 39 |.............*49|
00000030 17 2a 3b 3a e9 88 99 e8 b1 d9 d2 47 41 d8 |.*;:.......GA.|