mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
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:
parent
0b98d05a6d
commit
38982b663e
64 changed files with 2662 additions and 2721 deletions
80
testdata/Client-TLSv12-RenegotiationRejected
vendored
80
testdata/Client-TLSv12-RenegotiationRejected
vendored
|
@ -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 03 00 59 02 00 00 55 03 03 bf 1a 08 27 45 |....Y...U.....'E|
|
||||
00000010 0a 77 6e 2a 2e 86 6d 5f 90 13 84 99 ff d5 3e 7a |.wn*..m_......>z|
|
||||
00000020 39 87 cf d5 6f 68 8e 68 7d 47 59 20 79 cd 8b 6a |9...oh.h}GY y..j|
|
||||
00000030 70 88 0b 0d f3 d4 08 f3 99 2f c2 4a b3 f3 a7 89 |p......../.J....|
|
||||
00000040 ab f6 0c 91 9a f0 b1 aa 2f 27 3e 92 c0 2f 00 00 |......../'>../..|
|
||||
00000000 16 03 03 00 59 02 00 00 55 03 03 91 a6 bc 02 ab |....Y...U.......|
|
||||
00000010 19 62 2c de 45 57 ba 71 c0 b0 4d 78 5e f4 c2 b9 |.b,.EW.q..Mx^...|
|
||||
00000020 81 ba 8b d6 b1 9b c8 fb 0c 7c 40 20 dc 66 80 5b |.........|@ .f.[|
|
||||
00000030 20 3c 60 65 7f 9e 0c 67 a8 f3 22 c9 c5 48 80 fa | <`e...g.."..H..|
|
||||
00000040 02 a1 1a 48 6d 1c 46 07 db 6c 8e 85 cc a8 00 00 |...Hm.F..l......|
|
||||
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
||||
00000060 03 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,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 03 00 |.=.`.\!.;.......|
|
||||
000002c0 ac 0c 00 00 a8 03 00 1d 20 e3 0e 3b be 13 b7 01 |........ ..;....|
|
||||
000002d0 32 0e bf ab ee 5d ea e1 79 f4 16 34 b3 ce 5d e4 |2....]..y..4..].|
|
||||
000002e0 8b 4d a2 ef 83 78 b2 ab 60 04 01 00 80 31 3f da |.M...x..`....1?.|
|
||||
000002f0 24 88 42 84 73 4e 0b 80 7c d8 a1 c0 c2 c8 b6 27 |$.B.sN..|......'|
|
||||
00000300 df 41 23 0a 30 91 3f 01 cc d2 8b 66 03 4b 63 c1 |.A#.0.?....f.Kc.|
|
||||
00000310 02 18 b5 44 77 ae 7e 7d eb b5 5c 76 fc c9 c5 ec |...Dw.~}..\v....|
|
||||
00000320 27 71 a1 09 c1 34 6f 48 10 4d da e0 21 4b 30 32 |'q...4oH.M..!K02|
|
||||
00000330 9b 71 34 6b 6e 79 a3 80 2c 2b 85 5d 3c 44 4f 64 |.q4kny..,+.]<DOd|
|
||||
00000340 f3 d1 85 ad 03 41 8c 84 ff ab 95 0e d2 8d d0 8b |.....A..........|
|
||||
00000350 31 78 f7 78 06 56 97 28 49 6c 01 0f 1e a7 b4 be |1x.x.V.(Il......|
|
||||
00000360 b0 88 7a 44 68 f3 fc a2 1d 36 a6 e0 cc 16 03 03 |..zDh....6......|
|
||||
000002c0 ac 0c 00 00 a8 03 00 1d 20 f5 fd 54 ea 3e bb 70 |........ ..T.>.p|
|
||||
000002d0 fb 8e fb e4 8a 25 1f 9d 3d 9a fb fb 9d ff d1 52 |.....%..=......R|
|
||||
000002e0 81 9d b0 ea a1 e6 b0 87 2f 04 01 00 80 77 54 16 |......../....wT.|
|
||||
000002f0 98 5d 22 c4 7f 9b 2a 44 dd e4 0d 78 c2 60 6a ad |.]"...*D...x.`j.|
|
||||
00000300 91 9d d9 ed 93 0b 4e b4 c6 26 f1 94 6d e0 cc f4 |......N..&..m...|
|
||||
00000310 8d fa 9c ec 70 f5 5b ac 80 d7 5e 4f 49 04 bc 24 |....p.[...^OI..$|
|
||||
00000320 8e 0a 7d 44 e1 7e 47 1e a8 68 d1 fe 6f 41 0d 4a |..}D.~G..h..oA.J|
|
||||
00000330 e5 5b f6 f6 a3 af 76 21 56 1a 25 d2 03 3c f4 dd |.[....v!V.%..<..|
|
||||
00000340 0c 13 ce 56 8a 61 6f 5b 8c a1 04 43 82 87 64 20 |...V.ao[...C..d |
|
||||
00000350 4a 3b ec 90 d7 59 aa ca 08 3a 39 57 f1 56 57 6a |J;...Y...:9W.VWj|
|
||||
00000360 18 c9 14 7f e3 8d 83 0f e2 0b 4d 24 01 16 03 03 |..........M$....|
|
||||
00000370 00 04 0e 00 00 00 |......|
|
||||
>>> Flow 3 (client to server)
|
||||
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 8d 66 75 |....(.........fu|
|
||||
00000040 38 f8 b0 d3 0d 81 49 01 73 1e eb 1d 00 71 08 d9 |8.....I.s....q..|
|
||||
00000050 87 20 83 14 4c 54 f1 60 61 4d 19 53 42 |. ..LT.`aM.SB|
|
||||
00000030 16 03 03 00 20 6b ce 5c 2f df 85 e7 5e fa 51 48 |.... k.\/...^.QH|
|
||||
00000040 f9 31 a5 02 64 c7 1e b1 2e f2 6b 86 30 43 23 91 |.1..d.....k.0C#.|
|
||||
00000050 76 6b 40 74 2b |vk@t+|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 28 23 7e 00 58 a6 |..........(#~.X.|
|
||||
00000010 9c 0b ad 95 ad 99 7e d0 ff e3 ef 7c 14 c8 49 39 |......~....|..I9|
|
||||
00000020 0e 46 24 16 22 a7 94 51 9c c6 8d 8a cb f1 66 14 |.F$."..Q......f.|
|
||||
00000030 99 fd 15 |...|
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 20 e7 1e 88 10 2d |.......... ....-|
|
||||
00000010 dc 35 6d 2b 4a 91 39 5d 5c 46 ed 2e 45 6f 41 38 |.5m+J.9]\F..EoA8|
|
||||
00000020 66 0f 15 58 f8 af d8 a6 6c 99 61 |f..X....l.a|
|
||||
>>> Flow 5 (client to server)
|
||||
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 94 e4 ff |................|
|
||||
00000010 cd 27 dd 2b c7 3d ee c1 95 b9 85 e9 46 68 2e 68 |.'.+.=......Fh.h|
|
||||
00000020 f2 4e 10 |.N.|
|
||||
00000000 17 03 03 00 16 ab 2a df 2f 3c 07 6a 24 98 55 0b |......*./<.j$.U.|
|
||||
00000010 67 20 2d 92 cd 9a 44 74 da fd 6a |g -...Dt..j|
|
||||
>>> Flow 6 (server to client)
|
||||
00000000 16 03 03 00 1c 23 7e 00 58 a6 9c 0b ae 3b 83 b7 |.....#~.X....;..|
|
||||
00000010 9d 40 bc d7 47 ea a8 f4 4e 37 50 e3 d7 21 92 8d |.@..G...N7P..!..|
|
||||
00000020 b7 |.|
|
||||
00000000 16 03 03 00 14 d6 fb e7 9a 76 2a 6f e1 e9 33 1a |.........v*o..3.|
|
||||
00000010 77 07 fd 7f 98 af 1e 04 43 |w.......C|
|
||||
>>> Flow 7 (client to server)
|
||||
00000000 15 03 03 00 1a 00 00 00 00 00 00 00 02 98 b4 1c |................|
|
||||
00000010 2c c3 7c a1 9c 8c 09 b0 0a d1 d5 f4 99 ed 64 15 |,.|...........d.|
|
||||
00000020 03 03 00 1a 00 00 00 00 00 00 00 03 16 2a 34 39 |.............*49|
|
||||
00000030 17 2a 3b 3a e9 88 99 e8 b1 d9 d2 47 41 d8 |.*;:.......GA.|
|
||||
00000000 15 03 03 00 12 7e e3 20 96 03 31 8c 6a 31 f8 62 |.....~. ..1.j1.b|
|
||||
00000010 02 a7 a4 ce 77 83 c1 15 03 03 00 12 b9 91 75 45 |....w.........uE|
|
||||
00000020 a5 4a f9 c6 6d b2 5c c3 0a 1a 26 63 00 04 |.J..m.\...&c..|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue