mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-04 04:27: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
78
testdata/Client-TLSv12-ECDHE-ECDSA-AES-GCM
vendored
78
testdata/Client-TLSv12-ECDHE-ECDSA-AES-GCM
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 a3 a9 01 44 b1 |....Y...U.....D.|
|
||||
00000010 c8 87 6e ff 14 27 1c e0 76 38 b5 0b 40 41 5e b1 |..n..'..v8..@A^.|
|
||||
00000020 d8 72 13 77 6c 43 fb 17 3c eb 01 20 0e 69 39 c1 |.r.wlC..<.. .i9.|
|
||||
00000030 69 15 71 5e 9a bc f5 86 5d f2 f9 c8 12 42 f8 a6 |i.q^....]....B..|
|
||||
00000040 29 42 30 76 bb c6 e5 de 66 da 3b 05 c0 2b 00 00 |)B0v....f.;..+..|
|
||||
00000000 16 03 03 00 59 02 00 00 55 03 03 72 81 c3 91 37 |....Y...U..r...7|
|
||||
00000010 54 37 fb 0f 2b 16 3b 7b bc a6 d9 2e e2 83 23 83 |T7..+.;{......#.|
|
||||
00000020 b3 67 cf 36 dc 65 8d a6 3d cb 72 20 ac b9 b9 48 |.g.6.e..=.r ...H|
|
||||
00000030 30 9d fe 67 09 39 f5 47 d2 9a c8 3e 22 02 50 5e |0..g.9.G...>".P^|
|
||||
00000040 fd 02 c9 ff c1 84 2e 2e ab 78 ef c6 c0 2b 00 00 |.........x...+..|
|
||||
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
||||
00000060 03 02 0e 0b 00 02 0a 00 02 07 00 02 04 30 82 02 |.............0..|
|
||||
00000070 00 30 82 01 62 02 09 00 b8 bf 2d 47 a0 d2 eb f4 |.0..b.....-G....|
|
||||
|
@ -49,34 +49,34 @@
|
|||
00000240 13 83 0d 94 06 bb d4 37 7a f6 ec 7a c9 86 2e dd |.......7z..z....|
|
||||
00000250 d7 11 69 7f 85 7c 56 de fb 31 78 2b e4 c7 78 0d |..i..|V..1x+..x.|
|
||||
00000260 ae cb be 9e 4e 36 24 31 7b 6a 0f 39 95 12 07 8f |....N6$1{j.9....|
|
||||
00000270 2a 16 03 03 00 b7 0c 00 00 b3 03 00 1d 20 4a a7 |*............ J.|
|
||||
00000280 d3 89 bd f0 46 ae 52 3b 3c 6c 92 77 ca fe 97 9f |....F.R;<l.w....|
|
||||
00000290 1c ff 6e fc 1f 46 46 57 b4 75 a3 bc a6 53 04 03 |..n..FFW.u...S..|
|
||||
000002a0 00 8b 30 81 88 02 42 00 b2 6a ce c1 71 51 f4 e1 |..0...B..j..qQ..|
|
||||
000002b0 86 cb 55 40 00 e5 a0 62 f6 27 c2 23 d5 96 aa 66 |..U@...b.'.#...f|
|
||||
000002c0 14 36 eb 03 d9 be 01 9f cb 7b 9e 91 44 81 5d 24 |.6.......{..D.]$|
|
||||
000002d0 8c b3 cb 29 47 c8 19 72 4e af 92 4e e1 04 4c 1b |...)G..rN..N..L.|
|
||||
000002e0 12 1e ad 47 56 d9 7d 8a 94 02 42 01 95 dd 16 f5 |...GV.}...B.....|
|
||||
000002f0 fa b3 7a b8 d2 eb a0 e5 24 2e 8e fd 3d 5d 79 cb |..z.....$...=]y.|
|
||||
00000300 7a 6f 48 40 f7 1e b8 6e e6 0f 09 f4 1a ae 23 7b |zoH@...n......#{|
|
||||
00000310 51 30 67 52 20 d7 03 85 43 a8 92 32 fa 83 8f f8 |Q0gR ...C..2....|
|
||||
00000320 b1 fb 71 6f b3 b8 34 e8 29 ba e3 26 e2 16 03 03 |..qo..4.)..&....|
|
||||
00000330 00 04 0e 00 00 00 |......|
|
||||
00000270 2a 16 03 03 00 b6 0c 00 00 b2 03 00 1d 20 b7 1c |*............ ..|
|
||||
00000280 2f 05 5e c8 ae 68 6b 54 c5 88 19 cf 7c 04 b2 ed |/.^..hkT....|...|
|
||||
00000290 8d 5a e9 7e 6b 50 8a ee 12 66 2d 6f e4 7a 04 03 |.Z.~kP...f-o.z..|
|
||||
000002a0 00 8a 30 81 87 02 42 01 8d 7e 23 bc d7 a7 ad 73 |..0...B..~#....s|
|
||||
000002b0 5f 45 9e 04 da 6e c0 34 a8 09 59 e3 bc ab 80 e1 |_E...n.4..Y.....|
|
||||
000002c0 d4 84 79 7d de 90 c1 f2 ea 95 ed fc 7e d3 f0 31 |..y}........~..1|
|
||||
000002d0 4c 9b da 82 a0 97 ed e6 c9 f2 b9 2a 0a 1e 0a 2c |L..........*...,|
|
||||
000002e0 7f 1d 62 ea 11 a9 77 5e 2f 02 41 09 88 2b eb 84 |..b...w^/.A..+..|
|
||||
000002f0 4f 62 9a c9 8a 0b a2 c6 88 0e 3e d9 29 f0 2b ba |Ob........>.).+.|
|
||||
00000300 08 40 b0 9c 17 70 d9 84 1e d3 39 ad 70 fc df 63 |.@...p....9.p..c|
|
||||
00000310 a0 f6 69 3c 19 ce 0b a5 95 d2 6a b1 46 b1 e5 ba |..i<......j.F...|
|
||||
00000320 fd d2 67 4b 76 e3 eb b9 21 d0 7c 85 16 03 03 00 |..gKv...!.|.....|
|
||||
00000330 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 40 2f 97 |....(........@/.|
|
||||
00000040 9b c7 73 95 f0 c2 5d 70 bd 09 eb 6f cf ba 1c 42 |..s...]p...o...B|
|
||||
00000050 30 c4 6c 3d 9d fc d2 4e dc 1e 5b 5c 2b |0.l=...N..[\+|
|
||||
00000030 16 03 03 00 28 00 00 00 00 00 00 00 00 32 49 7e |....(........2I~|
|
||||
00000040 8f d6 2e 81 d7 03 a6 61 a3 04 98 81 95 84 58 d1 |.......a......X.|
|
||||
00000050 a2 33 fe 4a 5d cd 96 76 64 1e 1a 62 03 |.3.J]..vd..b.|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 28 32 4f ac f9 b4 |..........(2O...|
|
||||
00000010 07 64 7f 6e 88 a6 c6 76 45 fc 63 ae 19 af a4 55 |.d.n...vE.c....U|
|
||||
00000020 1d d0 ab ad 81 0f 6e 20 c9 29 e1 1e 9e 19 2c ac |......n .)....,.|
|
||||
00000030 68 5e f2 |h^.|
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 28 28 14 2d ae 7c |..........((.-.||
|
||||
00000010 b8 7d dc 27 b2 18 39 57 c8 be 5c 3d a3 ab fa 5a |.}.'..9W..\=...Z|
|
||||
00000020 3d 55 1b 3d 31 77 95 af 42 86 af 2b e7 5a 98 40 |=U.=1w..B..+.Z.@|
|
||||
00000030 18 77 d1 |.w.|
|
||||
>>> Flow 5 (client to server)
|
||||
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 31 b6 ad |.............1..|
|
||||
00000010 67 67 4a 76 ce 08 e1 70 8e 76 7b 4d 8a a8 7f 9c |ggJv...p.v{M....|
|
||||
00000020 05 3e 1f 15 03 03 00 1a 00 00 00 00 00 00 00 02 |.>..............|
|
||||
00000030 60 fd 32 5b e3 f9 cf 4a 01 9e 5a 1d 97 33 9e 82 |`.2[...J..Z..3..|
|
||||
00000040 9e 10 |..|
|
||||
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 30 50 2f |.............0P/|
|
||||
00000010 36 4a 7c ee e6 f0 b9 b8 bf 4d e3 63 4d 5e 58 08 |6J|......M.cM^X.|
|
||||
00000020 ac ac 82 15 03 03 00 1a 00 00 00 00 00 00 00 02 |................|
|
||||
00000030 80 e2 42 ca 91 65 04 4e ca a8 6f 81 7c 30 c0 1f |..B..e.N..o.|0..|
|
||||
00000040 aa 7b |.{|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue