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,7 +1,7 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 73 01 00 00 6f 03 03 3a 87 41 97 6b |....s...o..:.A.k|
00000010 86 2e 9d 9c 1d d1 b7 19 a6 98 2f 1a e0 e1 7a 2f |........../...z/|
00000020 92 42 4a 5f fd 5c 59 d6 58 6b 6a 00 00 04 c0 0a |.BJ_.\Y.Xkj.....|
00000000 16 03 01 00 73 01 00 00 6f 03 03 10 0f a5 0c d4 |....s...o.......|
00000010 33 47 41 2c 03 89 9d 67 48 36 c2 b0 16 9f fc eb |3GA,...gH6......|
00000020 1d e8 98 ee 77 7f c6 f3 65 ee ff 00 00 04 c0 0a |....w...e.......|
00000030 00 ff 01 00 00 42 00 0b 00 04 03 00 01 02 00 0a |.....B..........|
00000040 00 0a 00 08 00 1d 00 17 00 19 00 18 00 0d 00 20 |............... |
00000050 00 1e 06 01 06 02 06 03 05 01 05 02 05 03 04 01 |................|
@ -44,43 +44,39 @@
00000210 0e bd 3f a3 8c 25 c1 33 13 83 0d 94 06 bb d4 37 |..?..%.3.......7|
00000220 7a f6 ec 7a c9 86 2e dd d7 11 69 7f 85 7c 56 de |z..z......i..|V.|
00000230 fb 31 78 2b e4 c7 78 0d ae cb be 9e 4e 36 24 31 |.1x+..x.....N6$1|
00000240 7b 6a 0f 39 95 12 07 8f 2a 16 03 03 00 d8 0c 00 |{j.9....*.......|
00000250 00 d4 03 00 17 41 04 1e 18 37 ef 0d 19 51 88 35 |.....A...7...Q.5|
00000260 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd a7 24 20 3e |uq..T[....g..$ >|
00000270 b2 56 1c ce 97 28 5e f8 2b 2d 4f 9e f1 07 9f 6c |.V...(^.+-O....l|
00000280 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 a6 b5 68 1a |K[.V.2B.X..I..h.|
00000290 41 03 56 6b dc 5a 89 05 03 00 8b 30 81 88 02 42 |A.Vk.Z.....0...B|
000002a0 00 ba df e4 f7 1e 3c 94 da d9 68 d8 aa 42 36 13 |......<...h..B6.|
000002b0 c4 ff 16 a5 6a 95 ff f8 cf 78 e5 5d 82 9c 2a 5b |....j....x.]..*[|
000002c0 21 1c 20 0b 08 8f e2 bb fa a4 a3 3a 99 3f ff 5d |!. ........:.?.]|
000002d0 4f 28 b4 a7 0a 2b eb 18 e7 f7 01 83 40 75 d4 2c |O(...+......@u.,|
000002e0 aa 5e 02 42 01 12 a3 ea 97 d9 2e f9 69 42 d2 5a |.^.B........iB.Z|
000002f0 83 aa fb 89 a0 a8 d3 3e 34 0b 65 1d 16 b3 dc fb |.......>4.e.....|
00000300 fa 1e 09 0d 8c 92 02 c1 07 55 49 0f 11 4b bc 97 |.........UI..K..|
00000310 f9 c6 ff f3 7f 7c ec 51 f9 9a 25 e1 e7 f3 93 56 |.....|.Q..%....V|
00000320 b6 c9 59 f5 a8 02 16 03 03 00 04 0e 00 00 00 |..Y............|
00000240 7b 6a 0f 39 95 12 07 8f 2a 16 03 03 00 b7 0c 00 |{j.9....*.......|
00000250 00 b3 03 00 1d 20 2f e5 7d a3 47 cd 62 43 15 28 |..... /.}.G.bC.(|
00000260 da ac 5f bb 29 07 30 ff f6 84 af c4 cf c2 ed 90 |.._.).0.........|
00000270 99 5f 58 cb 3b 74 05 03 00 8b 30 81 88 02 42 01 |._X.;t....0...B.|
00000280 75 a2 d9 c3 52 e6 73 3c a4 28 1d 89 7f a3 e0 96 |u...R.s<.(......|
00000290 b8 19 da 01 b4 3a c3 ac 13 38 58 00 00 e0 a3 13 |.....:...8X.....|
000002a0 10 b2 d9 20 01 45 25 00 1c be ee c4 71 72 e2 b7 |... .E%.....qr..|
000002b0 ed 00 c6 9f 59 d7 ad 4f 7b ea 15 94 93 a2 fa 16 |....Y..O{.......|
000002c0 a2 02 42 01 c5 09 c2 bc 8a 86 9c 20 12 5e 8a 91 |..B........ .^..|
000002d0 d6 58 45 8a 06 37 e1 99 5a 34 65 9e 59 94 a7 50 |.XE..7..Z4e.Y..P|
000002e0 2f 38 8c 02 54 1b 29 3c 94 f3 62 4e 17 cc 8c bf |/8..T.)<..bN....|
000002f0 d8 dc 22 b0 a1 83 dc 5a 5d a3 16 08 83 cd ad 77 |.."....Z]......w|
00000300 1c 4f 49 ff f2 16 03 03 00 04 0e 00 00 00 |.OI...........|
>>> Flow 3 (client to server)
00000000 16 03 03 00 46 10 00 00 42 41 04 9d 5a 16 50 2d |....F...BA..Z.P-|
00000010 3e 2f 94 f9 c5 cb 3b ee 56 44 0b 06 ae ea b2 ff |>/....;.VD......|
00000020 ec cf 1d 9b 03 b3 d8 82 f5 9f 62 6f 13 2e 44 f0 |..........bo..D.|
00000030 13 b4 e3 33 50 f0 07 40 04 66 68 47 eb be af 77 |...3P..@.fhG...w|
00000040 8e 34 c9 29 f2 96 76 61 2c 08 e4 14 03 03 00 01 |.4.)..va,.......|
00000050 01 16 03 03 00 40 2f c7 d4 8e a4 0d 38 ed 11 1f |.....@/.....8...|
00000060 5d 98 6b 84 a4 7e c5 c3 e4 5c 79 63 15 b1 c4 ff |].k..~...\yc....|
00000070 08 a7 c7 04 db d3 3f 89 ea bb 6c 9c 0f e7 9b dd |......?...l.....|
00000080 f5 15 e3 37 3c 8c 4d ec 62 7d 73 2c 2b 89 a3 68 |...7<.M.b}s,+..h|
00000090 23 7a 6a 11 a9 87 |#zj...|
00000000 16 03 03 00 25 10 00 00 21 20 11 07 b7 a1 ff d3 |....%...! ......|
00000010 7c 94 4a 05 18 29 55 84 b1 c6 e0 f4 c7 9c 65 54 ||.J..)U.......eT|
00000020 88 30 20 ac 42 b8 df 42 87 54 14 03 03 00 01 01 |.0 .B..B.T......|
00000030 16 03 03 00 40 80 ed 21 31 50 41 aa 8d 54 33 4e |....@..!1PA..T3N|
00000040 3f 6b de 0e aa 9d a3 d5 76 1f ec 61 f3 58 e6 17 |?k......v..a.X..|
00000050 fd 57 ba 66 9e e0 ca 3b e6 a2 0b 56 15 f8 5d 79 |.W.f...;...V..]y|
00000060 9a d2 bf 71 49 15 07 67 eb b9 bc 48 2e 57 71 fb |...qI..g...H.Wq.|
00000070 9f f3 9e 45 15 |...E.|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 40 00 00 00 00 00 |..........@.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 71 1f 17 b1 37 |...........q...7|
00000020 bc 77 6a 77 04 9f 5f f1 50 72 a3 c6 72 b4 85 05 |.wjw.._.Pr..r...|
00000030 4e 15 8e 80 5c 14 ad 64 b8 bd 4f ee e8 bd 26 ff |N...\..d..O...&.|
00000040 d8 13 49 c7 e6 4c 52 da 4f 84 e1 17 03 03 00 40 |..I..LR.O......@|
00000010 00 00 00 00 00 00 00 00 00 00 00 58 53 cf 30 2c |...........XS.0,|
00000020 81 b6 7f 48 49 0f 6d ae 48 db c0 6c 7e c8 63 c8 |...HI.m.H..l~.c.|
00000030 1e 2d 6e f2 73 56 b2 74 6c 2f 44 e3 db 18 cb f4 |.-n.sV.tl/D.....|
00000040 e8 ba 0a 33 15 f9 32 94 ec f2 61 17 03 03 00 40 |...3..2...a....@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 6a d3 f5 95 70 8f b0 c1 08 ad dc da 7f ed c5 d3 |j...p...........|
00000070 f0 fb 48 fd 9f 3c 30 c8 67 38 3a 7e bc ea 3b 13 |..H..<0.g8:~..;.|
00000080 d9 bc a8 96 1c 2c 55 76 d6 df 04 bf e0 e8 0b dc |.....,Uv........|
00000060 ed 19 a6 04 9c 4d 32 7e 0e 89 10 6f 3d ab 37 5d |.....M2~...o=.7]|
00000070 2f fc 26 fe e8 a0 e9 3a 4e 38 e4 75 82 2c 5c ea |/.&....:N8.u.,\.|
00000080 ae b3 a4 93 5b 52 af 68 2c 86 26 d3 2a b2 6f 88 |....[R.h,.&.*.o.|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 90 29 fa 1c 7e f7 5a 1b 21 bf df |......)..~.Z.!..|
000000b0 dd d3 0e 12 b1 19 bb 17 35 f7 6a 0f 7a 08 91 4a |........5.j.z..J|
000000c0 2a 1e 46 68 da |*.Fh.|
000000a0 00 00 00 00 00 59 eb 95 fa 51 b5 26 7a cd 88 ba |.....Y...Q.&z...|
000000b0 36 8e a2 49 08 80 6e f6 3f cd aa a0 97 c0 de 2e |6..I..n.?.......|
000000c0 ae 66 55 48 25 |.fUH%|