mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 03:57:36 +03:00
Adds support for following TLS 1.3 extensions: - PSKKeyExchangeModes - SupportedVersions - KeyShare and uses them to implement newest Chrome and Firefox parrots. Tests for default Golang uTLS were regenerated because they previously used TLS-1.2 as max version.
138 lines
10 KiB
Text
138 lines
10 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 02 00 01 00 01 fc 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 20 00 00 00 00 |........... ....|
|
|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 22 0a 0a |............."..|
|
|
00000050 13 01 13 02 13 03 c0 2b c0 2f c0 2c c0 30 cc a9 |.......+./.,.0..|
|
|
00000060 cc a8 c0 13 c0 14 00 9c 00 9d 00 2f 00 35 00 0a |.........../.5..|
|
|
00000070 01 00 01 91 0a 0a 00 00 ff 01 00 01 00 00 00 00 |................|
|
|
00000080 05 00 03 00 00 00 00 17 00 00 00 23 00 00 00 0d |...........#....|
|
|
00000090 00 14 00 12 04 03 08 04 04 01 05 03 08 05 05 01 |................|
|
|
000000a0 08 06 06 01 02 01 00 05 00 05 01 00 00 00 00 00 |................|
|
|
000000b0 12 00 00 00 10 00 0e 00 0c 02 68 32 08 68 74 74 |..........h2.htt|
|
|
000000c0 70 2f 31 2e 31 75 50 00 00 00 0b 00 02 01 00 00 |p/1.1uP.........|
|
|
000000d0 33 00 2b 00 29 0a 0a 00 01 00 00 1d 00 20 2f e5 |3.+.)........ /.|
|
|
000000e0 7d a3 47 cd 62 43 15 28 da ac 5f bb 29 07 30 ff |}.G.bC.(.._.).0.|
|
|
000000f0 f6 84 af c4 cf c2 ed 90 99 5f 58 cb 3b 74 00 2d |........._X.;t.-|
|
|
00000100 00 02 01 01 00 2b 00 0b 0a 0a 0a 03 04 03 03 03 |.....+..........|
|
|
00000110 02 03 01 00 0a 00 0a 00 08 0a 0a 00 1d 00 17 00 |................|
|
|
00000120 18 00 1b 00 03 02 00 02 1a 1a 00 01 00 00 15 00 |................|
|
|
00000130 d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000200 00 00 00 00 00 |.....|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 7a 02 00 00 76 03 03 b9 13 c8 78 c8 |....z...v.....x.|
|
|
00000010 07 b2 91 85 0c 58 1d 4a f1 92 2e ec 9a 35 1e d3 |.....X.J.....5..|
|
|
00000020 96 8d 84 c9 f3 64 2c 56 a0 e4 c4 20 00 00 00 00 |.....d,V... ....|
|
|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 13 01 00 00 |................|
|
|
00000050 2e 00 2b 00 02 03 04 00 33 00 24 00 1d 00 20 c6 |..+.....3.$... .|
|
|
00000060 29 55 71 24 db 19 45 d2 67 3d 71 8d 6d 29 a0 e9 |)Uq$..E.g=q.m)..|
|
|
00000070 b5 0d c6 b3 6d 4e d8 44 0a 7b c5 43 c9 30 59 14 |....mN.D.{.C.0Y.|
|
|
00000080 03 03 00 01 01 17 03 03 00 17 d3 c6 d8 2a 1e 8b |.............*..|
|
|
00000090 59 b3 70 5d c4 47 59 5f 75 48 9f 53 41 7a 9d bd |Y.p].GY_uH.SAz..|
|
|
000000a0 9e 17 03 03 02 6d d6 37 65 20 7e 8c 53 03 18 8c |.....m.7e ~.S...|
|
|
000000b0 71 8b d3 47 ae a8 ff 2c 00 76 ab be 06 f1 91 6a |q..G...,.v.....j|
|
|
000000c0 1c f5 a5 ef 80 2e 74 f8 59 bc 16 ff c5 07 92 d4 |......t.Y.......|
|
|
000000d0 44 78 4b 23 21 89 b1 d0 cb 12 d3 94 08 92 a2 0d |DxK#!...........|
|
|
000000e0 22 10 c5 77 8e c9 12 5f 78 24 5c 3f c4 b1 c9 5e |"..w..._x$\?...^|
|
|
000000f0 cf 96 6d 4a f1 aa 11 26 5a 34 35 7c 3b 5d 5f 37 |..mJ...&Z45|;]_7|
|
|
00000100 2e af 71 87 34 65 63 90 ac 06 bb c1 2f 2f 16 96 |..q.4ec.....//..|
|
|
00000110 92 4a 4d 95 a4 bb 01 ea a2 5c 5d c9 bf df 42 36 |.JM......\]...B6|
|
|
00000120 cc 35 07 26 f7 54 2f 3f 09 31 fa 0d 30 8c 33 46 |.5.&.T/?.1..0.3F|
|
|
00000130 ed 5f 66 5b 15 c7 64 4c fa a5 7b 3c f5 5c f8 be |._f[..dL..{<.\..|
|
|
00000140 32 c4 a3 cf 05 e4 ea 01 54 66 21 c8 9c fe b8 0b |2.......Tf!.....|
|
|
00000150 06 b0 39 6e e7 79 e5 46 7b 3a 81 8f 8d 8a 6f 9a |..9n.y.F{:....o.|
|
|
00000160 ee 74 e5 79 60 a8 17 b8 f3 da f6 ef 4c 4a fb 13 |.t.y`.......LJ..|
|
|
00000170 41 0b 68 ee b4 9c 7b 80 2f 9b 0f ba 4f 0e a6 66 |A.h...{./...O..f|
|
|
00000180 9d e9 78 76 64 28 4e c2 db 4a 20 a0 c4 a1 a9 28 |..xvd(N..J ....(|
|
|
00000190 51 0b ee 46 18 c9 83 c8 f4 c1 f4 5a 54 cb e9 a9 |Q..F.......ZT...|
|
|
000001a0 4f c5 a6 c0 c6 5e 82 cc ed 9e 7b 0d 0f c4 35 71 |O....^....{...5q|
|
|
000001b0 78 a4 d5 fd 05 52 0d 15 08 5a 14 98 9a d6 ab df |x....R...Z......|
|
|
000001c0 63 ee c7 c3 5a d4 ba 4c 2d a1 e5 13 44 4b 00 9c |c...Z..L-...DK..|
|
|
000001d0 9d d0 7b 1a bf a1 8e 95 fa c6 62 23 31 e7 6e 59 |..{.......b#1.nY|
|
|
000001e0 52 05 32 66 ad 0f c5 69 33 0b 14 2e 55 07 be ba |R.2f...i3...U...|
|
|
000001f0 b7 8c a3 99 bd aa f6 5b 2e c4 d3 06 10 d6 f6 d6 |.......[........|
|
|
00000200 f8 5f fb 9d 3e 3b 89 d5 c4 da 6e f4 6f 1c e0 1e |._..>;....n.o...|
|
|
00000210 4d 53 28 6e 9d ab 0c ec b7 b7 23 06 39 9f b0 56 |MS(n......#.9..V|
|
|
00000220 3e ea 90 51 bd 95 4b 9c db 1f 25 e4 df 52 f1 e2 |>..Q..K...%..R..|
|
|
00000230 63 e8 06 c0 82 52 67 d2 dd 55 66 90 9c 2c 67 dd |c....Rg..Uf..,g.|
|
|
00000240 46 bb 5a 76 1f bf c5 96 d2 ea 2b dc eb ce 8b c6 |F.Zv......+.....|
|
|
00000250 64 ab 65 9b 95 21 0c bf f9 89 40 7f b8 af b5 0c |d.e..!....@.....|
|
|
00000260 6f 49 c2 6e d5 6b 35 f9 ac b0 7a 37 f3 b5 d4 89 |oI.n.k5...z7....|
|
|
00000270 d6 e8 a7 67 7d 8a cf ac 10 11 d5 48 4a 0c c1 8f |...g}......HJ...|
|
|
00000280 2f e5 46 59 45 35 b7 1b 49 61 22 c6 18 d4 f8 36 |/.FYE5..Ia"....6|
|
|
00000290 b8 23 cf e1 98 97 79 79 dd 1e 1b 34 6d d5 98 eb |.#....yy...4m...|
|
|
000002a0 cf c2 4c 3b c0 fa 08 e2 e2 4c 6b 79 ab 59 b7 24 |..L;.....Lky.Y.$|
|
|
000002b0 a0 0f 49 ee df 82 49 84 02 53 43 cb e4 dd d1 23 |..I...I..SC....#|
|
|
000002c0 30 17 9e dc 72 f0 ab b7 51 f9 7a 53 16 df 61 a6 |0...r...Q.zS..a.|
|
|
000002d0 a5 c3 56 83 49 c1 75 64 0d a0 f2 ab b9 02 f5 96 |..V.I.ud........|
|
|
000002e0 6e 6a 44 cc 4e de f6 1c 59 5c 6b b8 ba 1b 69 f3 |njD.N...Y\k...i.|
|
|
000002f0 61 01 3f fe a3 2d a2 5d b2 c7 d3 b0 15 66 65 6f |a.?..-.].....feo|
|
|
00000300 ff 8a 9b c0 bf fb c0 96 cc 30 18 d1 c4 47 a9 a5 |.........0...G..|
|
|
00000310 02 a6 49 17 03 03 00 99 78 93 c8 ca 99 c8 a2 c0 |..I.....x.......|
|
|
00000320 81 f5 bf 4b 21 de c8 a0 e1 7a d8 b0 0b a8 18 3a |...K!....z.....:|
|
|
00000330 57 08 b9 f6 05 8b df 50 83 2b 1a c4 8e 26 b1 aa |W......P.+...&..|
|
|
00000340 75 4b 63 39 c0 bb 14 9c 6f 44 c1 73 ab 86 c0 fc |uKc9....oD.s....|
|
|
00000350 b2 e1 fc 98 e7 6f 63 13 e6 2d 48 4b 45 7d e7 1a |.....oc..-HKE}..|
|
|
00000360 4c 59 8c 24 d3 d5 0a a0 9b ac 13 22 01 77 4a 8b |LY.$.......".wJ.|
|
|
00000370 74 d5 1c 79 fe d8 c2 9f a0 aa 57 5c fa e6 d7 4a |t..y......W\...J|
|
|
00000380 e1 7b 03 c9 6a ed cf d1 29 c8 13 3b b0 66 f7 01 |.{..j...)..;.f..|
|
|
00000390 29 51 fc ef cf f0 dc 4a f9 64 49 f3 44 99 f7 1b |)Q.....J.dI.D...|
|
|
000003a0 2c 5e 22 a5 62 8e 73 76 dc 30 e8 33 4e be 49 6e |,^".b.sv.0.3N.In|
|
|
000003b0 67 17 03 03 00 35 36 85 db 87 5a 47 dd c2 4d b7 |g....56...ZG..M.|
|
|
000003c0 ac aa 2b bf 17 4a 7a 06 aa e8 f0 ae f4 82 c5 f1 |..+..Jz.........|
|
|
000003d0 de 8a 53 9b 18 39 7c f8 57 53 e5 4f 22 ec 96 28 |..S..9|.WS.O"..(|
|
|
000003e0 4f 4e 40 fa a8 60 c6 ab 86 64 34 |ON@..`...d4|
|
|
>>> Flow 3 (client to server)
|
|
00000000 14 03 03 00 01 01 17 03 03 00 35 71 a4 1d 65 79 |..........5q..ey|
|
|
00000010 42 da ab a9 80 84 6e 67 9f 00 fe e8 db fb f8 87 |B.....ng........|
|
|
00000020 6b 50 c9 74 74 1e 91 d4 35 7e a0 93 6b ca 9a 97 |kP.tt...5~..k...|
|
|
00000030 e4 28 55 01 2f 65 a0 ae e4 76 f1 e2 55 8f 4a 04 |.(U./e...v..U.J.|
|
|
00000040 17 03 03 00 17 81 4f b7 1e 53 98 4f 1c 5a 74 79 |......O..S.O.Zty|
|
|
00000050 4f 3e ee a5 5e d1 ee 2b 29 61 aa 6f |O>..^..+)a.o|
|
|
>>> Flow 4 (server to client)
|
|
00000000 17 03 03 00 da 36 c1 b6 20 77 41 96 14 b8 a3 36 |.....6.. wA....6|
|
|
00000010 b4 c9 6f 7c 58 04 82 ed fc 00 29 1b 2e b5 49 89 |..o|X.....)...I.|
|
|
00000020 53 b2 9b 8d 0a 19 c4 4f d1 54 0f c3 cc a5 54 1b |S......O.T....T.|
|
|
00000030 81 2c 6e 76 79 aa ac eb b1 22 97 10 c3 7f e4 b8 |.,nvy...."......|
|
|
00000040 ed c3 ef 0f 9b 38 fc 87 13 f8 22 40 04 c9 b3 54 |.....8...."@...T|
|
|
00000050 03 42 9d 09 2d 74 88 b3 67 c1 62 82 b8 73 72 fc |.B..-t..g.b..sr.|
|
|
00000060 ae f1 8f 4d 9e f5 19 f4 82 f2 37 fc ea 28 e8 30 |...M......7..(.0|
|
|
00000070 b8 7a 95 bf cd 5f 97 18 7c 8a 60 47 cf 03 83 2a |.z..._..|.`G...*|
|
|
00000080 f9 98 44 91 27 b2 43 1e 3b aa 28 4f 61 08 f6 7a |..D.'.C.;.(Oa..z|
|
|
00000090 42 ef fe 25 66 7d 3f 68 55 4a 1f aa be d3 8c d2 |B..%f}?hUJ......|
|
|
000000a0 17 e8 cb 9b 66 fb eb b2 60 59 5e 4c 4e 1b 02 af |....f...`Y^LN...|
|
|
000000b0 05 04 d4 cb 47 8b b0 95 53 6d 08 4a ea f7 6a 47 |....G...Sm.J..jG|
|
|
000000c0 70 9b 7d 26 8e 0b c6 b0 91 b9 20 19 68 3f 3d fb |p.}&...... .h?=.|
|
|
000000d0 24 48 7f 93 76 98 c7 01 ef 77 79 fb 60 13 71 17 |$H..v....wy.`.q.|
|
|
000000e0 03 03 00 ea 7b ef cd 6f 88 78 ed 76 2e cd 48 eb |....{..o.x.v..H.|
|
|
000000f0 6a db d2 8e 6d da 23 2c d7 6a 8f 0a 38 c5 39 3b |j...m.#,.j..8.9;|
|
|
00000100 a8 bc 64 9b d7 28 fe af ae 8e 86 fb fd 93 c7 ae |..d..(..........|
|
|
00000110 95 4b b4 fb de e0 8c 2d ca 47 69 3c 3f 16 dc e5 |.K.....-.Gi<?...|
|
|
00000120 d1 07 15 52 be a8 81 d3 ed 17 c4 1e 5d ce 40 71 |...R........].@q|
|
|
00000130 a6 e5 3d 6e a5 e5 df 98 1a 53 87 14 83 02 ed 9a |..=n.....S......|
|
|
00000140 81 be bc 96 50 2a 67 27 98 cb 3a 04 ac 68 e3 8a |....P*g'..:..h..|
|
|
00000150 1b c9 86 da 44 ef fb d8 18 be 04 71 88 0d 8a 38 |....D......q...8|
|
|
00000160 79 84 85 00 f2 8b cd 41 26 ac d7 9a 46 c9 4f ea |y......A&...F.O.|
|
|
00000170 df 48 ee 68 fc 8f b2 59 64 b2 a5 01 f4 94 3d 9c |.H.h...Yd.....=.|
|
|
00000180 db 76 26 09 31 2f 7c ce b3 bf d3 fc fc 4d d5 9b |.v&.1/|......M..|
|
|
00000190 29 3c 8b b9 08 ac 92 ac 10 43 eb 06 23 51 e5 ec |)<.......C..#Q..|
|
|
000001a0 48 b1 97 70 68 f1 60 26 40 65 76 9b 36 47 3b c4 |H..ph.`&@ev.6G;.|
|
|
000001b0 44 bd 55 d6 65 2c 4f 50 b7 e9 84 b9 61 77 16 a0 |D.U.e,OP....aw..|
|
|
000001c0 21 c0 51 93 f5 1d d8 06 4b 4f 9b 5d 6b 7d |!.Q.....KO.]k}|
|
|
>>> Flow 5 (client to server)
|
|
00000000 17 03 03 00 13 c1 03 6f c8 25 24 c1 7d 1b 9d 80 |.......o.%$.}...|
|
|
00000010 18 0a 7d 86 99 cc d2 52 |..}....R|
|