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 01 00 59 02 00 00 55 03 01 7e 9f ae 06 96 |....Y...U..~....|
00000010 f9 31 05 96 e9 ee 59 8d 84 dd 40 25 4c 1e e9 b2 |.1....Y...@%L...|
00000020 b9 d0 7b e1 a9 4d d9 ea f9 f7 d1 20 21 35 e2 5a |..{..M..... !5.Z|
00000030 8f 72 0c b4 4e 5e 55 00 98 db a7 18 d3 60 01 be |.r..N^U......`..|
00000040 0f 0a 06 56 29 0b 67 fc fa aa 09 f4 c0 13 00 00 |...V).g.........|
00000000 16 03 01 00 59 02 00 00 55 03 01 12 98 43 77 a8 |....Y...U....Cw.|
00000010 19 99 16 b4 38 09 9b b6 b7 29 66 0b 73 88 be 43 |....8....)f.s..C|
00000020 ac 06 f1 d6 64 bd 79 3e 3b d8 38 20 b7 8b 0e 4f |....d.y>;.8 ...O|
00000030 89 ad 72 b3 23 84 36 25 d1 ab 64 f3 8f ab b4 a0 |..r.#.6%..d.....|
00000040 d0 30 78 c0 9d f7 63 c1 d9 8e 92 ce c0 13 00 00 |.0x...c.........|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
00000060 01 02 59 0b 00 02 55 00 02 52 00 02 4f 30 82 02 |..Y...U..R..O0..|
00000070 4b 30 82 01 b4 a0 03 02 01 02 02 09 00 e8 f0 9d |K0..............|
@ -53,40 +54,36 @@
00000290 77 8d 0c 1c f1 0f a1 d8 40 83 61 c9 4c 72 2b 9d |w.......@.a.Lr+.|
000002a0 ae db 46 06 06 4d f4 c1 b3 3e c0 d1 bd 42 d4 db |..F..M...>...B..|
000002b0 fe 3d 13 60 84 5c 21 d3 3b e9 fa e7 16 03 01 00 |.=.`.\!.;.......|
000002c0 cb 0c 00 00 c7 03 00 17 41 04 82 46 ed 76 ab f8 |........A..F.v..|
000002d0 33 eb fe 17 f8 83 d6 68 bb b6 fc 2b 86 f6 18 a6 |3......h...+....|
000002e0 bd dc 3e 35 6b 03 48 03 5f f0 3f a9 70 41 bd a4 |..>5k.H._.?.pA..|
000002f0 83 67 83 42 86 fc f5 ba 9e f5 4c b8 5a b7 ab 8b |.g.B......L.Z...|
00000300 77 33 79 ea 99 21 88 06 bc f0 00 80 9b f9 31 3a |w3y..!........1:|
00000310 7c 33 31 01 e2 a3 e9 97 a3 03 93 bb b7 fd 60 42 ||31...........`B|
00000320 89 3a b1 ff 59 11 ca 71 5f 05 06 a7 6d ec c5 7d |.:..Y..q_...m..}|
00000330 9e 93 2c 26 5c 29 9f 80 b1 dc 5a 1c 80 5d b9 a0 |..,&\)....Z..]..|
00000340 5e f7 05 d8 ad 9d c7 f2 69 11 d5 69 a8 51 16 06 |^.......i..i.Q..|
00000350 76 5d 49 a4 ac 7b 5c 73 1f 31 da 2f b7 83 6a 6e |v]I..{\s.1./..jn|
00000360 4a d6 56 53 91 66 0a e3 3d 70 c6 ee 42 84 15 12 |J.VS.f..=p..B...|
00000370 68 d3 9d f8 95 26 bd b4 2f 06 25 f0 34 9c f8 8e |h....&../.%.4...|
00000380 f5 ed 1d a3 0e 99 47 52 46 88 08 2d 16 03 01 00 |......GRF..-....|
00000390 04 0e 00 00 00 |.....|
000002c0 aa 0c 00 00 a6 03 00 1d 20 b7 6f b1 79 f8 fb ab |........ .o.y...|
000002d0 c6 75 22 1e 08 cc e7 cd 69 0a 86 1c de 60 9d 0e |.u".....i....`..|
000002e0 90 5b 9f b5 7b 6d 20 56 5d 00 80 a4 c0 4c 9c 50 |.[..{m V]....L.P|
000002f0 da bc d7 ae 93 14 57 a9 1c b2 e6 3c 06 f4 7c 78 |......W....<..|x|
00000300 a9 e9 06 ae ce 95 89 f1 1c 38 8f 45 40 b5 a9 67 |.........8.E@..g|
00000310 b4 7d f6 65 10 6f 9e a7 64 e6 fa 0a 02 1b bf ea |.}.e.o..d.......|
00000320 b5 3f 59 e2 73 c6 e0 02 3e eb 23 16 77 a7 6a aa |.?Y.s...>.#.w.j.|
00000330 60 08 71 4f 36 37 cb cf 6d 11 31 fd 45 42 4a 1c |`.qO67..m.1.EBJ.|
00000340 37 27 02 13 6d d5 34 7a 64 61 12 38 17 26 ea c4 |7'..m.4zda.8.&..|
00000350 16 bc c5 9c 57 31 e3 05 2a ff 65 29 2a 03 af f2 |....W1..*.e)*...|
00000360 8b 00 cd f1 8a dd d1 5e 49 a5 ec 16 03 01 00 04 |.......^I.......|
00000370 0e 00 00 00 |....|
>>> Flow 3 (client to server)
00000000 16 03 01 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 01 00 01 |..h.A.Vk.Z......|
00000050 01 16 03 01 00 30 dd cd 57 a9 ae 84 df 19 da ed |.....0..W.......|
00000060 18 3e 8b f9 79 42 33 4f 15 8a a1 28 a1 44 92 5d |.>..yB3O...(.D.]|
00000070 ad 8e 47 54 e9 1a 51 f2 a8 9e 99 88 79 fd 0d de |..GT..Q.....y...|
00000080 21 33 24 80 3e 84 |!3$.>.|
00000000 16 03 01 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 01 00 01 01 |....._X.;t......|
00000030 16 03 01 00 30 45 0b 24 ee b4 ec 5e 4b 00 50 9a |....0E.$...^K.P.|
00000040 7d c7 db 51 b4 c4 31 f8 dc 62 d5 44 d2 5a 02 ce |}..Q..1..b.D.Z..|
00000050 c9 fa 35 2a fd 89 7d 64 3f b5 42 03 b1 b2 08 ee |..5*..}d?.B.....|
00000060 9e da 12 26 37 |...&7|
>>> Flow 4 (server to client)
00000000 14 03 01 00 01 01 16 03 01 00 30 e2 27 e3 07 92 |..........0.'...|
00000010 b6 3b 3b 0e b4 31 39 12 0b ae 5a b3 16 10 59 3f |.;;..19...Z...Y?|
00000020 c3 b1 ea 5c 04 21 4f 7b 25 3c ac 2b 70 e7 fe 76 |...\.!O{%<.+p..v|
00000030 05 36 bd a4 e1 9e 13 d6 cd 29 53 |.6.......)S|
00000000 14 03 01 00 01 01 16 03 01 00 30 6a 3c 82 03 56 |..........0j<..V|
00000010 6d 7c f1 cd 57 54 73 a7 d2 91 f8 51 07 e4 f7 86 |m|..WTs....Q....|
00000020 bc 61 e0 86 1a ff fa f8 c9 4a 74 14 3a fa c9 67 |.a.......Jt.:..g|
00000030 10 78 3e 30 14 4d ee 2e e6 0f 4b |.x>0.M....K|
>>> Flow 5 (client to server)
00000000 17 03 01 00 20 77 65 af 9b 27 6e eb fb 36 4c 76 |.... we..'n..6Lv|
00000010 4e 5b 37 4d f3 43 dd 44 9f b4 97 60 4c 02 5a b8 |N[7M.C.D...`L.Z.|
00000020 90 7f 95 3e 31 17 03 01 00 20 41 4a b3 b3 e1 8c |...>1.... AJ....|
00000030 5f c2 82 c5 ed 29 81 64 cf 45 9b 04 82 de ae 9e |_....).d.E......|
00000040 b7 8b 66 64 2b 7e f7 86 e9 29 15 03 01 00 20 1a |..fd+~...).... .|
00000050 f7 c8 58 66 1c eb 52 66 a1 e0 5d f6 67 74 84 9a |..Xf..Rf..].gt..|
00000060 76 dc 0d 8b 2c 02 04 ff 5a d1 71 4b 12 73 c7 |v...,...Z.qK.s.|
00000000 17 03 01 00 20 b2 62 65 f3 1d ec ed 26 8e e0 a3 |.... .be....&...|
00000010 18 63 88 0e 50 13 61 a5 eb eb 61 30 e7 f8 ea 55 |.c..P.a...a0...U|
00000020 bd e8 0e d4 4d 17 03 01 00 20 ac 64 b0 07 83 d2 |....M.... .d....|
00000030 53 bb 7e 2f a2 9a e4 c8 e0 51 30 bd b7 2e f9 bf |S.~/.....Q0.....|
00000040 6a 9c c7 68 eb 7a 97 a9 de 14 15 03 01 00 20 84 |j..h.z........ .|
00000050 8f 8d 04 b0 40 88 93 66 d7 e2 ea 74 d7 34 b9 c4 |....@..f...t.4..|
00000060 43 27 f8 f5 4b e5 04 f0 ba e3 c7 b0 7c 0e c1 |C'..K.......|..|