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 4f 01 00 00 4b 03 01 2b 50 d8 3b 1f |....O...K..+P.;.|
00000010 df 1c ad 85 72 c0 cc 9c 4b 34 83 2c e5 1f a8 da |....r...K4.,....|
00000020 f2 74 50 de b9 7f 76 03 6a 0e 99 00 00 04 c0 0a |.tP...v.j.......|
00000000 16 03 01 00 4f 01 00 00 4b 03 01 fe 61 b4 5d ae |....O...K...a.].|
00000010 19 2f b0 b6 45 79 41 a6 87 85 18 21 7f 67 91 4f |./..EyA....!.g.O|
00000020 1c 5a 8f 96 18 88 e6 15 63 8e 19 00 00 04 c0 0a |.Z......c.......|
00000030 00 ff 01 00 00 1e 00 0b 00 04 03 00 01 02 00 0a |................|
00000040 00 0a 00 08 00 1d 00 17 00 19 00 18 00 16 00 00 |................|
00000050 00 17 00 00 |....|
@ -42,41 +42,37 @@
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 01 00 d5 0c 00 |{j.9....*.......|
00000250 00 d1 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 00 8a 30 81 87 02 42 01 87 |A.Vk.Z...0...B..|
000002a0 16 fb 72 db d2 a4 23 7f d9 7d 42 2c e5 f1 4c 7e |..r...#..}B,..L~|
000002b0 76 30 90 3b cb a3 60 43 8a 9b 22 b3 fe e2 97 a0 |v0.;..`C..".....|
000002c0 6f 6e 74 cb c1 c9 f3 59 63 18 e3 cb 7a a6 82 86 |ont....Yc...z...|
000002d0 f0 f8 40 e0 38 3c 6e 8d aa 18 79 89 fc 5f 93 8d |..@.8<n...y.._..|
000002e0 02 41 6d 23 f9 c2 4c 6d da a8 be 8a e9 b5 d5 cc |.Am#..Lm........|
000002f0 28 f0 48 0c 7d a8 80 60 02 9f fc f9 38 a1 e3 5b |(.H.}..`....8..[|
00000300 b5 f4 11 d5 f3 94 52 f2 c2 73 5f b7 05 2b 96 7c |......R..s_..+.||
00000310 27 4d 94 94 f2 00 0a 50 53 e6 72 1f 2d fb 91 1b |'M.....PS.r.-...|
00000320 d1 67 cf 16 03 01 00 04 0e 00 00 00 |.g..........|
00000240 7b 6a 0f 39 95 12 07 8f 2a 16 03 01 00 b4 0c 00 |{j.9....*.......|
00000250 00 b0 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 00 8a 30 81 87 02 42 00 9b 23 |._X.;t..0...B..#|
00000280 b7 7f 16 df 0f 3e c0 51 b0 97 7f 75 54 e7 3f a8 |.....>.Q...uT.?.|
00000290 f6 c4 64 ca 69 ad 3b 56 7f 58 c2 94 b3 b2 5c ee |..d.i.;V.X....\.|
000002a0 66 ea f7 bc f6 0d 06 02 94 08 e0 d6 99 03 3c da |f.............<.|
000002b0 80 80 34 46 52 8b 9a c6 31 61 6f 4e a0 1c a6 02 |..4FR...1aoN....|
000002c0 41 79 ba 2e d2 48 85 b5 bc b4 08 bd be 11 d8 62 |Ay...H.........b|
000002d0 cd 06 22 f2 a6 49 e7 14 9b 79 56 c1 29 26 de 7e |.."..I...yV.)&.~|
000002e0 1f 41 a3 a3 1d 0f 67 90 0b da 20 dc e6 04 18 f2 |.A....g... .....|
000002f0 fb f0 4f 30 ed e5 97 90 37 01 f4 8a 86 ed 5f 40 |..O0....7....._@|
00000300 fe ba 16 03 01 00 04 0e 00 00 00 |...........|
>>> Flow 3 (client to server)
00000000 16 03 01 00 46 10 00 00 42 41 04 cb cc 3f 30 f8 |....F...BA...?0.|
00000010 bb c5 88 d5 12 fa 24 96 57 74 76 86 f2 2f e4 16 |......$.Wtv../..|
00000020 dd 03 db 0a ca 22 53 85 97 cd d8 cc 30 a6 c9 29 |....."S.....0..)|
00000030 2a 1b 22 cd d1 e8 30 43 c8 2f ca 1b 49 d0 4a 63 |*."...0C./..I.Jc|
00000040 dd 28 68 42 64 c4 53 46 40 42 dd 14 03 01 00 01 |.(hBd.SF@B......|
00000050 01 16 03 01 00 30 17 1c 8d fa fc 33 93 2d 7e 94 |.....0.....3.-~.|
00000060 fc 97 65 5f 9d cf 37 f4 1a e6 80 28 e6 f7 f5 97 |..e_..7....(....|
00000070 57 8e b2 0b 88 45 2f d6 2f e5 11 e5 45 85 06 a0 |W....E/./...E...|
00000080 52 eb 5c cb 14 db |R.\...|
00000000 16 03 01 00 25 10 00 00 21 20 74 53 a0 24 31 0e |....%...! tS.$1.|
00000010 24 0f be da 29 8c 2c a2 50 c4 f1 bc 96 36 4c b2 |$...).,.P....6L.|
00000020 be 4e f3 71 e2 9f 00 e5 d1 2d 14 03 01 00 01 01 |.N.q.....-......|
00000030 16 03 01 00 30 cc 38 0f 1e 21 0e e7 19 f0 6f 45 |....0.8..!....oE|
00000040 44 c3 d4 3c 18 16 c5 b3 0f 30 71 c2 92 db 0e 29 |D..<.....0q....)|
00000050 e5 07 0c 59 7a c6 94 da 8d 83 47 5b af 57 7f 20 |...Yz.....G[.W. |
00000060 bb 74 cc 67 03 |.t.g.|
>>> Flow 4 (server to client)
00000000 14 03 01 00 01 01 16 03 01 00 30 d8 bc 10 62 c8 |..........0...b.|
00000010 73 d4 eb 2f c1 41 e8 e4 71 08 ea 60 f2 59 0f f9 |s../.A..q..`.Y..|
00000020 51 fe f3 32 86 d7 bc 66 02 c1 0d 61 f2 7b 90 81 |Q..2...f...a.{..|
00000030 49 5d 66 cc 8a 38 30 85 4c 98 1c 17 03 01 00 20 |I]f..80.L...... |
00000040 88 37 8d 00 97 b0 a5 93 ff fb 47 9a db 4c ad 58 |.7........G..L.X|
00000050 3d 49 d1 4e 3e 24 74 47 df 78 1a f2 c4 ef 3f 8c |=I.N>$tG.x....?.|
00000060 17 03 01 00 30 15 49 5a f7 5c 09 76 69 b6 20 0d |....0.IZ.\.vi. .|
00000070 02 f9 c4 95 d4 08 fe c0 1d 49 0f 61 a7 ca 5e d5 |.........I.a..^.|
00000080 93 c4 8f d1 4d 53 04 76 c7 90 a2 b6 ee d2 fe 13 |....MS.v........|
00000090 bc bb b3 83 2b 15 03 01 00 20 e4 f3 84 e5 09 c8 |....+.... ......|
000000a0 dc 40 26 7c 42 59 08 4d 8e 1a 70 41 03 9e a6 a2 |.@&|BY.M..pA....|
000000b0 ac cd 62 1e b9 e2 fb c2 33 0a |..b.....3.|
00000000 14 03 01 00 01 01 16 03 01 00 30 03 83 0b c1 bb |..........0.....|
00000010 69 43 63 46 48 8d 18 e2 d7 8d 0d 8b 69 d7 98 a8 |iCcFH.......i...|
00000020 eb 11 94 5a 37 70 ef 4c 74 28 1d d0 9e 19 b7 4f |...Z7p.Lt(.....O|
00000030 2e 01 7d a4 e2 22 12 89 26 64 3a 17 03 01 00 20 |..}.."..&d:.... |
00000040 d3 a1 47 e6 96 87 67 f0 44 a9 0b 6b 58 c8 00 6a |..G...g.D..kX..j|
00000050 74 76 58 82 3a 70 b9 37 b1 ce 6a 0a 19 8c 22 64 |tvX.:p.7..j..."d|
00000060 17 03 01 00 30 c4 c9 e2 83 68 ac f3 a6 4e a4 38 |....0....h...N.8|
00000070 bb 52 3f be a7 19 89 ea 73 36 79 04 f3 d2 e0 b4 |.R?.....s6y.....|
00000080 a6 fb 9c d8 40 a4 5a af 17 c1 c9 61 af a8 90 e5 |....@.Z....a....|
00000090 e0 06 c4 40 4f 15 03 01 00 20 e2 08 3c 9a e3 c5 |...@O.... ..<...|
000000a0 44 ad 0e fc 07 4d 64 80 e2 9d 82 67 8a 62 10 34 |D....Md....g.b.4|
000000b0 7a 68 6c 15 79 76 eb a0 5f 30 |zhl.yv.._0|