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,20 +1,20 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 8d 01 00 00 89 03 03 00 00 00 00 00 |................|
00000000 16 03 01 00 91 01 00 00 8d 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 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 |..|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 2c cc a8 |.............,..|
00000030 cc a9 c0 2f c0 2b c0 30 c0 2c c0 27 c0 13 c0 23 |.../.+.0.,.'...#|
00000040 c0 09 c0 14 c0 0a 00 9c 00 9d 00 3c 00 2f 00 35 |...........<./.5|
00000050 c0 12 00 0a 00 05 c0 11 c0 07 01 00 00 38 00 05 |.............8..|
00000060 00 05 01 00 00 00 00 00 0a 00 0a 00 08 00 1d 00 |................|
00000070 17 00 18 00 19 00 0b 00 02 01 00 00 0d 00 0e 00 |................|
00000080 0c 04 01 04 03 05 01 05 03 02 01 02 03 ff 01 00 |................|
00000090 01 00 00 12 00 00 |......|
>>> Flow 2 (server to client)
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.........|
00000000 16 03 01 00 59 02 00 00 55 03 01 45 04 14 a2 70 |....Y...U..E...p|
00000010 3e 1e d9 2c d4 bd f3 e8 9c f3 e0 08 d8 0f 7f 82 |>..,............|
00000020 2b 07 a0 bd 47 56 a0 e1 06 0d 36 20 fc 0f 5b 85 |+...GV....6 ..[.|
00000030 8e 17 20 f1 f6 1e 80 c3 79 1a e1 86 c3 ed e9 24 |.. .....y......$|
00000040 6d bb 24 3c 0c 8d 2c 79 f2 03 27 b0 c0 13 00 00 |m.$<..,y..'.....|
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..............|
@ -54,36 +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 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.......|
000002c0 aa 0c 00 00 a6 03 00 1d 20 85 05 5f e3 a2 b2 12 |........ .._....|
000002d0 c8 82 53 2b c2 38 e1 a8 08 87 a7 d5 b3 98 6f 81 |..S+.8........o.|
000002e0 ce 81 6b 78 3e 3a b7 1d 71 00 80 43 81 fb 47 5e |..kx>:..q..C..G^|
000002f0 08 16 39 35 d3 c2 f3 ea bb 2c 7d bc 01 9b 35 5d |..95.....,}...5]|
00000300 63 7e c3 38 f3 04 96 eb d7 3f d1 df 71 97 ec 22 |c~.8.....?..q.."|
00000310 1b 4a 89 14 4d e5 44 08 87 52 69 ea 28 f8 6a ea |.J..M.D..Ri.(.j.|
00000320 3e ff 17 de 4d 20 95 e3 6e 3f af 05 20 9b a3 ac |>...M ..n?.. ...|
00000330 70 1b 1c bf f9 52 d6 11 6d d9 85 90 08 4d 64 1f |p....R..m....Md.|
00000340 c5 35 34 37 11 b8 44 a3 ef 93 a6 b6 87 58 0b c4 |.547..D......X..|
00000350 8e 94 d8 67 4d 09 7a 2a aa 95 db e6 af 29 21 a2 |...gM.z*.....)!.|
00000360 ee c3 90 ef c6 53 46 12 fb 87 06 16 03 01 00 04 |.....SF.........|
00000370 0e 00 00 00 |....|
>>> Flow 3 (client to server)
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|
00000030 16 03 01 00 30 50 f5 a9 34 25 ed a2 fb c8 7f 35 |....0P..4%.....5|
00000040 08 57 59 da 54 c1 8d 92 ec 23 73 af f3 92 8d 19 |.WY.T....#s.....|
00000050 03 ce ab 5b eb dc 5b 81 3f 51 a1 20 31 3f 33 da |...[..[.?Q. 1?3.|
00000060 27 c5 c3 9c fd |'....|
>>> Flow 4 (server to client)
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|
00000000 14 03 01 00 01 01 16 03 01 00 30 b1 61 9b 63 4e |..........0.a.cN|
00000010 43 96 80 49 ac 2d 93 7d b9 f2 bb 81 79 5e 94 bf |C..I.-.}....y^..|
00000020 06 d0 a6 14 46 91 cd 90 b0 8a 85 ee fe 41 a7 4d |....F........A.M|
00000030 97 d7 4d 40 5e f4 5b bd d3 0c db |..M@^.[....|
>>> Flow 5 (client to server)
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.......|..|
00000000 17 03 01 00 20 49 21 bc a5 4c 96 41 3f 22 87 0a |.... I!..L.A?"..|
00000010 c0 4e 0e 54 cb c2 27 8a 4f b0 37 fb b4 1f c1 4e |.N.T..'.O.7....N|
00000020 77 e1 09 57 23 17 03 01 00 20 f0 f0 3b 78 a8 ae |w..W#.... ..;x..|
00000030 ef b1 e0 f4 29 0f 90 4a 0f e5 48 34 84 5e 4f d8 |....)..J..H4.^O.|
00000040 53 46 f8 29 64 2b 8e 87 79 0a 15 03 01 00 20 71 |SF.)d+..y..... q|
00000050 32 6c 08 2a f7 18 c8 d5 48 a8 c7 d1 68 7a 65 ec |2l.*....H...hze.|
00000060 3e fa 4b fe ff 76 1a 57 64 22 61 27 a0 5d b6 |>.K..v.Wd"a'.].|