crypto/tls: enable ChaCha20-Poly1305 cipher suites by default.

This change enables the ChaCha20-Poly1305 cipher suites by default. This
changes the default ClientHello and thus requires updating all the
tests.

Change-Id: I6683a2647caaff4a11f9e932babb6f07912cad94
Reviewed-on: https://go-review.googlesource.com/30958
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Adam Langley 2016-10-12 10:53:35 -07:00 committed by Brad Fitzpatrick
parent 0b98d05a6d
commit 38982b663e
64 changed files with 2662 additions and 2721 deletions

View file

@ -1,7 +1,7 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 73 01 00 00 6f 03 03 10 0f a5 0c d4 |....s...o.......|
00000010 33 47 41 2c 03 89 9d 67 48 36 c2 b0 16 9f fc eb |3GA,...gH6......|
00000020 1d e8 98 ee 77 7f c6 f3 65 ee ff 00 00 04 c0 0a |....w...e.......|
00000000 16 03 01 00 73 01 00 00 6f 03 03 f0 4f 82 cc 2a |....s...o...O..*|
00000010 27 0b 7f 2e e4 af 6d ba 4e fe 61 99 fc 0a 44 ee |'.....m.N.a...D.|
00000020 c0 4e 7b 3a 7c f0 6d 12 b7 7d 9e 00 00 04 c0 0a |.N{:|.m..}......|
00000030 00 ff 01 00 00 42 00 0b 00 04 03 00 01 02 00 0a |.....B..........|
00000040 00 0a 00 08 00 1d 00 17 00 19 00 18 00 0d 00 20 |............... |
00000050 00 1e 06 01 06 02 06 03 05 01 05 02 05 03 04 01 |................|
@ -48,35 +48,35 @@
00000250 00 b3 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 05 03 00 8b 30 81 88 02 42 01 |._X.;t....0...B.|
00000280 75 a2 d9 c3 52 e6 73 3c a4 28 1d 89 7f a3 e0 96 |u...R.s<.(......|
00000290 b8 19 da 01 b4 3a c3 ac 13 38 58 00 00 e0 a3 13 |.....:...8X.....|
000002a0 10 b2 d9 20 01 45 25 00 1c be ee c4 71 72 e2 b7 |... .E%.....qr..|
000002b0 ed 00 c6 9f 59 d7 ad 4f 7b ea 15 94 93 a2 fa 16 |....Y..O{.......|
000002c0 a2 02 42 01 c5 09 c2 bc 8a 86 9c 20 12 5e 8a 91 |..B........ .^..|
000002d0 d6 58 45 8a 06 37 e1 99 5a 34 65 9e 59 94 a7 50 |.XE..7..Z4e.Y..P|
000002e0 2f 38 8c 02 54 1b 29 3c 94 f3 62 4e 17 cc 8c bf |/8..T.)<..bN....|
000002f0 d8 dc 22 b0 a1 83 dc 5a 5d a3 16 08 83 cd ad 77 |.."....Z]......w|
00000300 1c 4f 49 ff f2 16 03 03 00 04 0e 00 00 00 |.OI...........|
00000280 2d d4 82 80 01 6b e6 8c 6a 2a b3 09 1b 0d 86 e6 |-....k..j*......|
00000290 62 92 85 46 d9 e3 b2 e9 f1 5e 77 c2 27 fd 2b 68 |b..F.....^w.'.+h|
000002a0 6a e1 3d e2 42 d2 86 96 42 b1 3b 50 7b e2 2c 34 |j.=.B...B.;P{.,4|
000002b0 d3 e7 f6 14 89 48 eb 5c 9a 98 98 ab f3 db 85 06 |.....H.\........|
000002c0 cb 02 42 00 df 42 94 63 a5 ff 43 a5 20 5d 83 09 |..B..B.c..C. ]..|
000002d0 88 7d 10 ff ec 32 33 28 1d 43 b2 d2 bf 39 0c 63 |.}...23(.C...9.c|
000002e0 9a c0 f8 0e 9f 71 a7 9a 5d 27 1a 5c f2 36 80 b3 |.....q..]'.\.6..|
000002f0 71 0f d3 c0 fd 0d 5d 02 90 c4 9d 90 db 74 ad f6 |q.....]......t..|
00000300 22 8f 6b 9d 55 16 03 03 00 04 0e 00 00 00 |".k.U.........|
>>> Flow 3 (client to server)
00000000 16 03 03 00 25 10 00 00 21 20 11 07 b7 a1 ff d3 |....%...! ......|
00000010 7c 94 4a 05 18 29 55 84 b1 c6 e0 f4 c7 9c 65 54 ||.J..)U.......eT|
00000020 88 30 20 ac 42 b8 df 42 87 54 14 03 03 00 01 01 |.0 .B..B.T......|
00000030 16 03 03 00 40 80 ed 21 31 50 41 aa 8d 54 33 4e |....@..!1PA..T3N|
00000040 3f 6b de 0e aa 9d a3 d5 76 1f ec 61 f3 58 e6 17 |?k......v..a.X..|
00000050 fd 57 ba 66 9e e0 ca 3b e6 a2 0b 56 15 f8 5d 79 |.W.f...;...V..]y|
00000060 9a d2 bf 71 49 15 07 67 eb b9 bc 48 2e 57 71 fb |...qI..g...H.Wq.|
00000070 9f f3 9e 45 15 |...E.|
00000000 16 03 03 00 25 10 00 00 21 20 af 52 73 d4 46 4d |....%...! .Rs.FM|
00000010 bc 0e dd 56 1f 7f 72 ce 6c 99 b9 64 53 7d 53 8d |...V..r.l..dS}S.|
00000020 0c a4 75 8c 83 3b 4b 76 2d 4f 14 03 03 00 01 01 |..u..;Kv-O......|
00000030 16 03 03 00 40 a0 ef 9f 54 a8 ab 7c 5b 4a a1 b2 |....@...T..|[J..|
00000040 5d 5b 6a d7 a7 32 35 46 58 d0 ba 38 6f 94 6e 9a |][j..25FX..8o.n.|
00000050 41 16 82 ed 4d 39 c4 ff 06 bf 2c 67 47 70 56 4e |A...M9....,gGpVN|
00000060 c5 ac 7f a0 5d d9 89 82 7a d9 36 07 55 b3 20 f4 |....]...z.6.U. .|
00000070 b2 73 cf c3 7d |.s..}|
>>> 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 58 53 cf 30 2c |...........XS.0,|
00000020 81 b6 7f 48 49 0f 6d ae 48 db c0 6c 7e c8 63 c8 |...HI.m.H..l~.c.|
00000030 1e 2d 6e f2 73 56 b2 74 6c 2f 44 e3 db 18 cb f4 |.-n.sV.tl/D.....|
00000040 e8 ba 0a 33 15 f9 32 94 ec f2 61 17 03 03 00 40 |...3..2...a....@|
00000010 00 00 00 00 00 00 00 00 00 00 00 73 5f db 9e 08 |...........s_...|
00000020 10 38 3b c0 95 6b dd fc 16 b2 d1 db 63 13 ca d5 |.8;..k......c...|
00000030 b5 be 5a 1d 74 b5 75 f3 a2 63 59 be a7 d0 ab 0d |..Z.t.u..cY.....|
00000040 d3 43 83 8a 1d 59 ed fd ea f0 b9 17 03 03 00 40 |.C...Y.........@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 ed 19 a6 04 9c 4d 32 7e 0e 89 10 6f 3d ab 37 5d |.....M2~...o=.7]|
00000070 2f fc 26 fe e8 a0 e9 3a 4e 38 e4 75 82 2c 5c ea |/.&....:N8.u.,\.|
00000080 ae b3 a4 93 5b 52 af 68 2c 86 26 d3 2a b2 6f 88 |....[R.h,.&.*.o.|
00000060 cf 20 4f 4f bf c4 00 05 1e ca 7f 6f 69 77 e9 52 |. OO.......oiw.R|
00000070 14 61 02 6d f1 c0 ad 7c 1a 34 cf b2 7a 58 4a 70 |.a.m...|.4..zXJp|
00000080 11 36 5f e9 21 62 cb eb 8f e7 11 04 bf 66 03 69 |.6_.!b.......f.i|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 59 eb 95 fa 51 b5 26 7a cd 88 ba |.....Y...Q.&z...|
000000b0 36 8e a2 49 08 80 6e f6 3f cd aa a0 97 c0 de 2e |6..I..n.?.......|
000000c0 ae 66 55 48 25 |.fUH%|
000000a0 00 00 00 00 00 f5 35 92 09 6c 45 c0 27 95 98 a9 |......5..lE.'...|
000000b0 86 56 53 1f a8 01 d5 0b 79 0e 91 15 3b 9a 07 21 |.VS.....y...;..!|
000000c0 cb ce f0 2b 6a |...+j|