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 bd c9 cf c6 3f |....q...m......?|
00000010 0b a6 a0 f8 a6 c5 91 f1 45 fa 20 cb 42 67 2f d7 |........E. .Bg/.|
00000020 cb be 35 d4 6a a5 07 47 11 bb fe 00 00 04 00 2f |..5.j..G......./|
00000000 16 03 01 00 71 01 00 00 6d 03 03 e8 20 88 32 3c |....q...m... .2<|
00000010 30 7c b0 e8 86 e7 08 16 e0 47 4e 4a a9 b8 c6 5e |0|.......GNJ...^|
00000020 21 4e 80 31 cf 25 6f 8f f7 e4 3e 00 00 04 00 2f |!N.1.%o...>..../|
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 a4 72 d8 04 ea |............r...|
00000010 75 da c4 14 85 8d d7 7d 08 43 3a 38 fc 02 50 8e |u......}.C:8..P.|
00000020 54 8a 49 a7 fc 4b 3f 13 a0 63 c6 69 72 93 2d cd |T.I..K?..c.ir.-.|
00000030 f5 08 fe 24 bb d8 54 76 25 eb f8 9c 5d b9 a9 df |...$..Tv%...]...|
00000040 56 f9 42 81 c1 29 0e 4e 05 f3 f7 44 bb ee a4 de |V.B..).N...D....|
00000050 a6 cc 22 68 40 1b 81 4e fe e2 02 8e e7 7c 25 71 |.."h@..N.....|%q|
00000060 cc 9e 86 01 e6 80 68 b2 4e 80 3d fc bc 4f 8f 30 |......h.N.=..O.0|
00000070 fa 17 be 2c 7f c5 5f 17 b0 b3 3c 4b 90 a2 5e cc |...,.._...<K..^.|
00000080 35 94 9c e4 9c 35 12 a2 ba a3 c3 14 03 03 00 01 |5....5..........|
00000090 01 16 03 03 00 40 20 48 00 ff 46 9b e5 61 a3 1f |.....@ H..F..a..|
000000a0 c3 cc 86 b3 b5 4d dc f8 b3 6f 61 1f b8 03 83 93 |.....M...oa.....|
000000b0 58 be bf 77 5d db 9c 3d 26 ed e2 cd a6 1d 4b e3 |X..w]..=&.....K.|
000000c0 37 c2 0d 4d b6 80 e1 f1 17 19 1e 9e 77 90 ec 16 |7..M........w...|
000000d0 55 92 a4 f9 36 a7 |U...6.|
00000000 16 03 03 00 86 10 00 00 82 00 80 4f 68 55 f9 ae |...........OhU..|
00000010 17 7b ff 2c c9 d2 87 cb 12 30 3a 4a 55 30 c6 31 |.{.,.....0:JU0.1|
00000020 9e 3d 1d fd 19 43 cd 07 89 a1 6b ad ac 65 df 9d |.=...C....k..e..|
00000030 e7 ff f5 85 8a 5f e3 4e 1a ab 1a 48 65 ee f1 3b |....._.N...He..;|
00000040 63 b3 db ab cb 69 13 31 25 dd 7d 31 78 3f 80 48 |c....i.1%.}1x?.H|
00000050 f4 2f b1 f9 c8 a1 02 bd 10 53 d9 46 90 c4 c2 87 |./.......S.F....|
00000060 99 44 ad 89 0a b2 9c b2 8e 59 2a 1e 87 9b 79 2d |.D.......Y*...y-|
00000070 e0 20 72 95 43 64 b3 6a c9 25 ec 26 76 ad b2 ff |. r.Cd.j.%.&v...|
00000080 24 31 c0 b6 b2 75 8f c7 51 2f 53 14 03 03 00 01 |$1...u..Q/S.....|
00000090 01 16 03 03 00 40 4c 1c 1d 4c cb b2 dc 2c 37 b4 |.....@L..L...,7.|
000000a0 c7 dd ab 06 99 b7 4c 81 33 9e ef 07 4a 9a eb 88 |......L.3...J...|
000000b0 39 c6 bf a6 df 0e 07 62 de 32 80 7f 9b a4 b6 6d |9......b.2.....m|
000000c0 77 24 9f 5d 4d 1c 53 68 4f f4 7a da 60 5f b4 e5 |w$.]M.ShO.z.`_..|
000000d0 61 06 e6 bd 52 15 |a...R.|
>>> 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 85 9f 5f d6 b1 |............._..|
00000020 f2 c9 ad b8 01 16 9f 20 b1 41 06 f4 6d 44 b5 6d |....... .A..mD.m|
00000030 0a 68 d0 e3 6a 24 66 de 39 f1 7a d9 81 5e f7 d4 |.h..j$f.9.z..^..|
00000040 36 e6 11 12 f6 0f 01 ef 6e af 0d 17 03 03 00 40 |6.......n......@|
00000010 00 00 00 00 00 00 00 00 00 00 00 2d 65 c0 13 cf |...........-e...|
00000020 c5 4e 83 5b c3 6a d9 65 e8 b1 38 16 47 94 61 06 |.N.[.j.e..8.G.a.|
00000030 28 da 6e 60 c0 0c d8 31 f5 61 58 55 b2 24 61 9a |(.n`...1.aXU.$a.|
00000040 21 cb 64 31 3a 08 bb 29 1b 98 f8 17 03 03 00 40 |!.d1:..).......@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 b4 b8 fe 91 27 cb 85 b3 4c 2c 42 8e ce c0 17 40 |....'...L,B....@|
00000070 82 34 21 c6 fe b6 c8 90 07 d2 a7 5e f2 01 34 ed |.4!........^..4.|
00000080 0a 51 33 af 4b 72 80 49 4b d1 a1 02 99 f5 26 3d |.Q3.Kr.IK.....&=|
00000060 71 cd f8 e4 7d dd 2c 03 a5 c9 11 ff 11 d2 19 fd |q...}.,.........|
00000070 69 fa 88 a6 f2 cb 64 43 56 e0 d5 a6 eb d4 17 50 |i.....dCV......P|
00000080 89 dd 34 3c 5d 1e 80 35 06 e9 c3 a0 11 83 41 cc |..4<]..5......A.|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 63 81 63 33 d1 2b db 09 8b b6 57 |.....c.c3.+....W|
000000b0 54 c9 34 e8 56 e4 e3 b4 86 90 d5 86 df 71 a9 85 |T.4.V........q..|
000000c0 56 be d5 9c b8 |V....|
000000a0 00 00 00 00 00 a1 31 41 88 62 af e7 df b9 9a 3b |......1A.b.....;|
000000b0 d7 8a f0 11 0c 2f 9b 6d c5 91 cf 9f 51 a0 c1 06 |...../.m....Q...|
000000c0 e4 3f da 7b 7a |.?.{z|