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 1d 78 37 0a 00 |....Y...U...x7..|
00000010 70 94 45 3c 49 1b 82 94 3f d4 4c b7 00 70 a6 65 |p.E<I...?.L..p.e|
00000020 af 8d 9b be 78 b5 98 22 75 5e a8 20 86 0e 17 77 |....x.."u^. ...w|
00000030 6b 15 41 0b 51 d3 74 dc 5a a6 fc 7c 29 7d 30 3b |k.A.Q.t.Z..|)}0;|
00000040 7e 69 5c a1 4a 45 c9 8a 52 80 c3 3d c0 2c 00 00 |~i\.JE..R..=.,..|
00000000 16 03 03 00 59 02 00 00 55 03 03 25 53 12 07 e9 |....Y...U..%S...|
00000010 0c 84 dd 43 23 7e 89 4d de 4f d2 a6 86 1f be f1 |...C#~.M.O......|
00000020 33 4c 11 b1 c7 ab 97 5a ce a0 af 20 1d 1d 0d d6 |3L.....Z... ....|
00000030 44 8e e8 14 aa c3 07 ac 26 f9 4b 62 2f ab 1d 83 |D.......&.Kb/...|
00000040 0c 0e f4 99 c9 1b 63 83 6f 9b 0e 26 c0 2c 00 00 |......c.o..&.,..|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
00000060 03 02 0e 0b 00 02 0a 00 02 07 00 02 04 30 82 02 |.............0..|
00000070 00 30 82 01 62 02 09 00 b8 bf 2d 47 a0 d2 eb f4 |.0..b.....-G....|
@ -48,38 +49,34 @@
00000240 13 83 0d 94 06 bb d4 37 7a f6 ec 7a c9 86 2e dd |.......7z..z....|
00000250 d7 11 69 7f 85 7c 56 de fb 31 78 2b e4 c7 78 0d |..i..|V..1x+..x.|
00000260 ae cb be 9e 4e 36 24 31 7b 6a 0f 39 95 12 07 8f |....N6$1{j.9....|
00000270 2a 16 03 03 00 d7 0c 00 00 d3 03 00 17 41 04 bd |*............A..|
00000280 d5 51 1a c3 69 ca 47 cd 74 e5 9b 48 be a6 8f 86 |.Q..i.G.t..H....|
00000290 70 cc d6 c5 d2 d7 85 8f e0 fa be 49 5c fc de 21 |p..........I\..!|
000002a0 98 b9 7c 88 12 a6 76 d9 47 c8 3f 0f 49 1d 7d 1b |..|...v.G.?.I.}.|
000002b0 15 77 7a 8b 0c f4 3a b6 de eb 70 69 50 88 3f 04 |.wz...:...piP.?.|
000002c0 03 00 8a 30 81 87 02 41 65 34 f2 1d db 9b 31 35 |...0...Ae4....15|
000002d0 a0 bc 4a b8 aa 78 93 54 c7 43 3b 4b 9d eb 3d ba |..J..x.T.C;K..=.|
000002e0 38 ba ad 5a 26 fc 67 46 ca d6 c4 21 42 6c 31 51 |8..Z&.gF...!Bl1Q|
000002f0 16 8e a3 59 d3 2c 55 9b 00 19 0e 40 ad 3c 3d ec |...Y.,U....@.<=.|
00000300 a2 da 87 5b b0 31 0e 4b 8e 02 42 01 f9 7e 5b a4 |...[.1.K..B..~[.|
00000310 d5 d1 7f 38 c5 59 31 29 4c c0 42 ad 2e e0 20 cc |...8.Y1)L.B... .|
00000320 24 53 70 d6 f2 ff c3 79 8d 56 14 62 12 5e fe 97 |$Sp....y.V.b.^..|
00000330 a0 c1 d6 25 d7 ae b1 c7 51 93 dd 06 8c 88 c8 af |...%....Q.......|
00000340 b4 38 d1 fd 2a 4f 35 1c bb 46 e6 06 c6 16 03 03 |.8..*O5..F......|
00000350 00 04 0e 00 00 00 |......|
00000270 2a 16 03 03 00 b7 0c 00 00 b3 03 00 1d 20 0d ae |*............ ..|
00000280 d8 d1 97 30 6d b0 2f a9 d5 42 5d 36 7c 86 19 3d |...0m./..B]6|..=|
00000290 1c ad fe 32 a7 09 c7 b7 5c 13 3a 36 39 1a 04 03 |...2....\.:69...|
000002a0 00 8b 30 81 88 02 42 01 61 83 4b 88 59 3b 1a 77 |..0...B.a.K.Y;.w|
000002b0 b3 bf d9 dc f5 49 ba c8 9e 68 f2 df ed ab 19 f9 |.....I...h......|
000002c0 b1 2d cb d9 35 b2 03 59 9f 11 dd 3f 48 a0 b6 15 |.-..5..Y...?H...|
000002d0 3b df e6 3d bf 3e 51 ac 92 cc 55 32 81 11 95 85 |;..=.>Q...U2....|
000002e0 50 7d b2 7e 81 3e 9a b2 2e 02 42 00 a3 24 28 c0 |P}.~.>....B..$(.|
000002f0 56 f8 20 29 77 f4 3d ff 2d 09 36 58 31 cf 9d d5 |V. )w.=.-.6X1...|
00000300 9c b6 df 95 b1 5f f7 88 2b 09 a3 58 17 41 79 ae |....._..+..X.Ay.|
00000310 9e 6a 80 6a a6 d2 64 77 1b 79 44 55 bc af 8f df |.j.j..dw.yDU....|
00000320 07 58 fe e7 97 4b d7 39 3f 8a 10 ae 0d 16 03 03 |.X...K.9?.......|
00000330 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 1b f7 |.....(..........|
00000060 98 9e a2 1c a6 d9 0e 55 2f d4 6b be db ba 2f 4a |.......U/.k.../J|
00000070 4f 46 8b 8b b2 65 27 d8 18 d5 83 61 12 68 |OF...e'....a.h|
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 53 ce b7 |....(........S..|
00000040 2e 05 87 4b dc da ee 78 8e b9 24 7c 79 a3 29 c2 |...K...x..$|y.).|
00000050 03 35 d5 81 91 4a a7 b5 d4 86 a0 76 91 |.5...J.....v.|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 28 09 2c dd e4 d7 |..........(.,...|
00000010 60 74 68 8f b0 48 1d 53 54 b8 f8 fc 27 d4 9b ca |`th..H.ST...'...|
00000020 4a e3 29 ad 49 53 46 9b ed 2f 9c c8 2c 17 b3 50 |J.).ISF../..,..P|
00000030 a3 87 81 |...|
00000000 14 03 03 00 01 01 16 03 03 00 28 fc 0c 83 69 48 |..........(...iH|
00000010 3c ef b2 24 08 0b 80 4f 37 48 a1 47 21 b1 99 d9 |<..$...O7H.G!...|
00000020 06 1e db 1b 13 21 18 99 ad 2d a9 7e 66 1f 00 39 |.....!...-.~f..9|
00000030 53 2f 36 |S/6|
>>> Flow 5 (client to server)
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 93 96 d9 |................|
00000010 50 d6 f9 00 c5 06 60 0b 94 2c cf b6 08 99 57 a3 |P.....`..,....W.|
00000020 f5 2c de 15 03 03 00 1a 00 00 00 00 00 00 00 02 |.,..............|
00000030 95 6f b0 94 f7 79 c6 5e 50 e6 42 e9 76 d0 7b 26 |.o...y.^P.B.v.{&|
00000040 c6 0d |..|
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 c2 08 d0 |................|
00000010 5a f6 bd a8 68 a9 91 91 be b8 d9 bb 71 96 c7 e0 |Z...h.......q...|
00000020 0e 30 10 15 03 03 00 1a 00 00 00 00 00 00 00 02 |.0..............|
00000030 b9 c5 46 64 12 c1 bb 38 69 1b 59 59 f0 69 75 01 |..Fd...8i.YY.iu.|
00000040 3f 8b |?.|