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 71 01 00 00 6d 03 03 3f de 5d 94 64 |....q...m..?.].d|
00000010 21 fd 53 6e f0 fe 81 99 4d ac 16 42 e6 92 db dd |!.Sn....M..B....|
00000020 36 6a d8 4e 94 c3 0a a7 3c 6a 2a 00 00 04 00 2f |6j.N....<j*..../|
00000000 16 03 01 00 71 01 00 00 6d 03 03 4b 5c 12 23 9d |....q...m..K\.#.|
00000010 76 5b 5b 5a 1d dd 71 96 49 fb 11 a8 94 24 7e 0e |v[[Z..q.I....$~.|
00000020 39 a4 ba 09 eb 56 1e 04 d7 11 0b 00 00 04 00 2f |9....V........./|
00000030 00 ff 01 00 00 40 00 00 00 10 00 0e 00 00 0b 73 |.....@.........s|
00000040 6e 69 74 65 73 74 2e 63 6f 6d 00 0d 00 20 00 1e |nitest.com... ..|
00000050 06 01 06 02 06 03 05 01 05 02 05 03 04 01 04 02 |................|
@ -51,31 +51,31 @@
00000280 b3 3e c0 d1 bd 42 d4 db fe 3d 13 60 84 5c 21 d3 |.>...B...=.`.\!.|
00000290 3b e9 fa e7 16 03 03 00 04 0e 00 00 00 |;............|
>>> Flow 3 (client to server)
00000000 16 03 03 00 86 10 00 00 82 00 80 8f 1f 52 21 82 |.............R!.|
00000010 f8 5f 48 ca f4 17 36 2f 4b 92 d9 ee cf 73 41 97 |._H...6/K....sA.|
00000020 25 8c e5 a5 d0 33 55 f0 e9 f1 d1 7f fd ed fc 46 |%....3U........F|
00000030 0d a1 f8 fe 39 7b 78 39 4e 47 26 b1 c6 ce ea 34 |....9{x9NG&....4|
00000040 f2 59 2f ea b6 21 ac 14 5f 2c 3b 36 4a 9a 89 d2 |.Y/..!.._,;6J...|
00000050 00 df e8 e8 ba d4 dd 90 d1 98 ff 9d a0 d2 b9 c1 |................|
00000060 a8 41 3b ed 89 40 9a 15 e8 07 e6 5a 77 d3 d4 8c |.A;..@.....Zw...|
00000070 a9 00 a6 5d b4 db 15 cd 59 9d ee f3 85 c0 66 12 |...]....Y.....f.|
00000080 ba 67 fe b9 40 5b 17 80 78 35 49 14 03 03 00 01 |.g..@[..x5I.....|
00000090 01 16 03 03 00 40 73 e4 be 74 13 2b 52 eb c6 25 |.....@s..t.+R..%|
000000a0 b8 8d 07 e7 ad cb 13 ff 1b ab 61 e7 60 b0 d7 ec |..........a.`...|
000000b0 b6 35 d9 a9 82 84 79 3c 09 57 a6 d6 26 c6 54 4b |.5....y<.W..&.TK|
000000c0 16 c4 e1 84 df 9d 13 4f b2 6c 95 b6 a5 2c 3d 63 |.......O.l...,=c|
000000d0 a0 ab db c4 c6 2c |.....,|
00000000 16 03 03 00 86 10 00 00 82 00 80 1c fa 6e 9f 45 |.............n.E|
00000010 74 2e 9b 55 71 0c ba d2 4f 16 62 54 ad 9e 75 77 |t..Uq...O.bT..uw|
00000020 7e 76 72 0d c5 4d d0 f8 05 0a e9 07 be d7 f3 62 |~vr..M.........b|
00000030 82 10 14 49 0e 06 38 ff 01 db ac 11 5f 59 b2 ea |...I..8....._Y..|
00000040 37 35 3e ae f7 9b 0d bd 8a 16 f5 e2 2b a2 77 b2 |75>.........+.w.|
00000050 3e cc 75 f6 29 90 d9 c3 4b 3a 1a 75 49 dc c1 30 |>.u.)...K:.uI..0|
00000060 5e 24 df f5 0f 54 52 33 1b 05 ea df 05 cc fa 0d |^$...TR3........|
00000070 f7 42 00 89 1a 6c ea a3 da 63 ef 32 e1 15 b9 c3 |.B...l...c.2....|
00000080 d2 c5 94 96 fc fd f3 1c 97 0b 1c 14 03 03 00 01 |................|
00000090 01 16 03 03 00 40 e8 66 12 ca f5 37 2f db c9 03 |.....@.f...7/...|
000000a0 f1 ef 3e 9c 01 b0 ae a3 11 a2 78 41 63 31 12 38 |..>.......xAc1.8|
000000b0 6c 8a 59 81 9e a4 a8 da f0 fb 5f 6f d0 14 ae 18 |l.Y......._o....|
000000c0 68 f7 8a 0a c7 a1 2e 63 42 b7 9f bd 03 cb c5 6d |h......cB......m|
000000d0 f9 39 f9 95 a8 16 |.9....|
>>> 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 54 ef 5e a4 7c |...........T.^.||
00000020 61 ca e9 6c 23 b3 7e ac e5 dc ee a0 67 e7 b1 4a |a..l#.~.....g..J|
00000030 4e bd d1 6e 1b 7d 37 10 02 ba 9c 67 54 0a cb fa |N..n.}7....gT...|
00000040 ed c5 db 07 a3 21 9a 16 71 3d 6e 17 03 03 00 40 |.....!..q=n....@|
00000010 00 00 00 00 00 00 00 00 00 00 00 3a 4c df 03 f5 |...........:L...|
00000020 8d 52 86 04 3a e2 e4 93 ab 53 24 c6 ba 35 67 8d |.R..:....S$..5g.|
00000030 dd f8 f3 23 0a e9 77 ee 91 ff 55 08 55 de 85 ab |...#..w...U.U...|
00000040 82 37 8f 25 50 b9 10 e9 0a ec 74 17 03 03 00 40 |.7.%P.....t....@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 a5 bd 15 cb 51 43 97 ec 6b c0 1d 29 8d 48 cb df |....QC..k..).H..|
00000070 d0 8b dc 1a 0b 01 d9 74 4d 22 bd 91 4c 1f b2 56 |.......tM"..L..V|
00000080 37 23 dc 4a 33 1e a5 ff 79 80 f2 f9 c3 82 ca 67 |7#.J3...y......g|
00000060 d9 16 96 1d 60 ac 73 7b 06 1d 8b 53 05 4b eb 4b |....`.s{...S.K.K|
00000070 fe 6d fd 6f a7 08 57 68 a6 23 63 b4 dc 32 f4 e3 |.m.o..Wh.#c..2..|
00000080 10 85 cf 3d 8b e7 dc 7d 3a bc f8 3b 2f 27 60 03 |...=...}:..;/'`.|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 72 fe 8c 2d fb dd 85 d6 c2 af 72 |.....r..-......r|
000000b0 00 62 3c ae e1 75 6d 9f ed e9 fa 6a b9 22 1b ba |.b<..um....j."..|
000000c0 df 0c d7 25 f1 |...%.|
000000a0 00 00 00 00 00 96 c0 82 ff 64 89 19 76 7e f5 e7 |.........d..v~..|
000000b0 95 31 76 76 f2 2b a7 c3 f0 4b 5f ec 9b e4 06 73 |.1vv.+...K_....s|
000000c0 15 7b 7f d3 35 |.{..5|