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 71 01 00 00 6d 03 03 79 aa a3 4c 5e |....q...m..y..L^|
00000010 d3 2a f5 2a 49 d4 18 09 b0 60 b3 8b 5f 36 6e 55 |.*.*I....`.._6nU|
00000020 9c 96 95 b5 d1 63 02 38 06 c2 21 00 00 04 00 2f |.....c.8..!..../|
00000000 16 03 01 00 71 01 00 00 6d 03 03 31 c7 3f 2b 99 |....q...m..1.?+.|
00000010 95 d8 d5 b7 91 ab 95 c6 09 35 0c 2b bd b6 94 1e |.........5.+....|
00000020 64 4a 2d b6 43 23 a0 01 e7 93 22 00 00 04 00 2f |dJ-.C#...."..../|
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 06 73 7f 8c 53 |............s..S|
00000010 81 65 a2 7d 94 f3 dd 38 37 ed 17 8d e5 c4 c0 62 |.e.}...87......b|
00000020 b8 73 49 e3 91 19 72 af e3 bf 64 20 40 65 fb 0e |.sI...r...d @e..|
00000030 83 72 54 c9 73 ad 2b c9 86 0e d3 7c 8d 82 13 fb |.rT.s.+....|....|
00000040 5c 61 61 c5 04 2d 8b c9 55 2f 3e 64 c1 af ba 22 |\aa..-..U/>d..."|
00000050 1b 6b 26 42 62 f9 e9 e0 3b 91 c7 62 77 ee bf ec |.k&Bb...;..bw...|
00000060 03 2f 94 74 42 c2 48 e9 08 89 a9 b4 9f aa f6 d4 |./.tB.H.........|
00000070 00 fe d9 a4 b2 38 88 b9 8d 60 26 f6 c3 d7 6e ed |.....8...`&...n.|
00000080 13 17 46 bf 53 5a 0b 9c 29 4b 1a 14 03 03 00 01 |..F.SZ..)K......|
00000090 01 16 03 03 00 40 97 ce 83 9d 12 fe 16 f4 26 9c |.....@........&.|
000000a0 ac a7 02 0a a9 e6 71 b6 8a 6f 8c 2c d2 5b e7 72 |......q..o.,.[.r|
000000b0 45 8f e3 56 21 f0 a8 c9 2c ae db 17 88 3b 33 82 |E..V!...,....;3.|
000000c0 2c 8f 5f ca 33 be 5a ca 13 13 0a 7b a9 72 cc 72 |,._.3.Z....{.r.r|
000000d0 07 ff c0 c3 7a ef |....z.|
00000000 16 03 03 00 86 10 00 00 82 00 80 c9 3a 9d ea e3 |............:...|
00000010 19 f1 07 77 61 ef 5a aa ed 0f 26 b4 7a 45 db 05 |...wa.Z...&.zE..|
00000020 bd 51 77 f5 ee 7b c1 83 9c 95 49 7b 70 5e 5b fe |.Qw..{....I{p^[.|
00000030 25 d2 3d 64 74 b8 a4 97 fd cb b9 75 7b 8f b0 59 |%.=dt......u{..Y|
00000040 30 bf b3 41 ce 54 83 0a ca 29 49 5a fe 29 4c 53 |0..A.T...)IZ.)LS|
00000050 fb d6 6e 46 d9 f7 31 17 d6 ee f9 ac 41 82 22 11 |..nF..1.....A.".|
00000060 a7 34 07 41 50 43 2f 83 f6 1f c6 c0 9d 4a 67 5a |.4.APC/......JgZ|
00000070 af 44 59 c0 00 33 be 24 f7 0a a4 fe 76 6b 03 05 |.DY..3.$....vk..|
00000080 2e ec 4d 49 db 6e e5 0a 5f af 09 14 03 03 00 01 |..MI.n.._.......|
00000090 01 16 03 03 00 40 ad 89 4d 25 a2 ce 98 8c cf b6 |.....@..M%......|
000000a0 f5 f4 76 6b e7 71 66 4a f9 a7 67 fb 1d 6c a7 83 |..vk.qfJ..g..l..|
000000b0 3b 1d 6a af 65 f2 c1 1d 97 03 5b c2 34 ee 3b 8e |;.j.e.....[.4.;.|
000000c0 cc bd 8f 3a b8 9b 4f 90 3f de 1e 97 1e 8e 61 37 |...:..O.?.....a7|
000000d0 2d 30 35 84 3b 26 |-05.;&|
>>> 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 d6 0c 58 67 cc |.............Xg.|
00000020 1d d7 70 79 a9 fc 71 23 7f 3f 02 83 64 1c 30 62 |..py..q#.?..d.0b|
00000030 c8 23 1f f8 30 9d 1a 5e ad 96 39 2d d3 b0 7d 17 |.#..0..^..9-..}.|
00000040 7c 8f 10 ee a3 a1 88 0e 66 37 03 17 03 03 00 40 ||.......f7.....@|
00000010 00 00 00 00 00 00 00 00 00 00 00 fe 23 de 33 4b |............#.3K|
00000020 55 f2 8e 73 09 ba ae f1 12 bd f7 15 75 90 8f 19 |U..s........u...|
00000030 1b 19 b6 3f 2c 19 47 87 a9 43 d5 1e 85 fb 0c 90 |...?,.G..C......|
00000040 c8 18 72 8f 08 6f 48 43 3c 5c 5a 17 03 03 00 40 |..r..oHC<\Z....@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 5f da fe 30 21 c9 a4 85 4b a4 0a a6 93 74 ae 92 |_..0!...K....t..|
00000070 d5 88 9b 39 1a 7e fe 9f 00 19 ad fb ba 7e bd c1 |...9.~.......~..|
00000080 0a ea 4f 40 3b 76 a0 83 8f f7 77 1f 4d b9 ec c6 |..O@;v....w.M...|
00000060 4d 44 d7 eb a3 94 00 74 90 9d c0 bd 8e 11 eb b6 |MD.....t........|
00000070 93 43 c6 14 0d ba c2 aa f0 f5 2d 85 9a 7c 27 44 |.C........-..|'D|
00000080 fc d8 46 76 b2 21 4f 70 1a 9a df 9e 3a 8f a3 58 |..Fv.!Op....:..X|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 e6 81 5b 64 4f 8b bc 47 0b 5d 24 |.......[dO..G.]$|
000000b0 a8 f9 39 82 25 84 4d 57 9d ac 90 d0 3b 6c 4f f0 |..9.%.MW....;lO.|
000000c0 e1 1c 2c 5a 3e |..,Z>|
000000a0 00 00 00 00 00 91 0f c3 2a 98 79 57 39 3c 68 98 |........*.yW9<h.|
000000b0 df 36 12 de e5 15 ee cb 80 ce 33 d9 20 95 33 38 |.6........3. .38|
000000c0 8b d8 ed 8f 9b |.....|