mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-04 12:37:35 +03:00
Ever since session ticket key rotation was introduced in CL 9072, we've been including a prefix in every ticket to identify what key it's encrypted with. It's a small privacy gain, but the cost of trial decryptions is also small, especially since the first key is probably the most frequently used. Also reissue tickets on every resumption so that the next connection can't be linked to all the previous ones. Again the privacy gain is small but the performance cost is small and it comes with a reduction in complexity. For #60105 Change-Id: I852f297162d2b79a3d9bf61f6171e8ce94b2537a Reviewed-on: https://go-review.googlesource.com/c/go/+/496817 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
149 lines
11 KiB
Text
149 lines
11 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 00 ca 01 00 00 c6 03 03 8e 65 2c 25 90 |............e,%.|
|
|
00000010 2c f6 3b 40 a0 58 aa 9f ec 27 f7 28 a7 46 a4 e2 |,.;@.X...'.(.F..|
|
|
00000020 c5 b8 2e ae d7 d6 bf 25 b5 40 f4 20 a6 cf 1d 38 |.......%.@. ...8|
|
|
00000030 04 15 40 3b c7 b9 e2 59 0a 48 ef 35 14 39 a2 37 |..@;...Y.H.5.9.7|
|
|
00000040 ff 10 2d 8a 14 82 4d c7 bb 55 b1 1d 00 04 13 01 |..-...M..U......|
|
|
00000050 00 ff 01 00 00 79 00 0b 00 04 03 00 01 02 00 0a |.....y..........|
|
|
00000060 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 00 16 |................|
|
|
00000070 00 00 00 17 00 00 00 0d 00 1e 00 1c 04 03 05 03 |................|
|
|
00000080 06 03 08 07 08 08 08 09 08 0a 08 0b 08 04 08 05 |................|
|
|
00000090 08 06 04 01 05 01 06 01 00 2b 00 03 02 03 04 00 |.........+......|
|
|
000000a0 2d 00 02 01 01 00 33 00 26 00 24 00 1d 00 20 3f |-.....3.&.$... ?|
|
|
000000b0 e9 0f b3 c9 2c 2e 90 69 cb 26 6e ef 30 4e 8c 0c |....,..i.&n.0N..|
|
|
000000c0 de 4d aa 26 04 67 6e bb ef b0 c8 8e 4f 0b 15 |.M.&.gn.....O..|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 7a 02 00 00 76 03 03 00 00 00 00 00 |....z...v.......|
|
|
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 a6 cf 1d 38 |........... ...8|
|
|
00000030 04 15 40 3b c7 b9 e2 59 0a 48 ef 35 14 39 a2 37 |..@;...Y.H.5.9.7|
|
|
00000040 ff 10 2d 8a 14 82 4d c7 bb 55 b1 1d 13 01 00 00 |..-...M..U......|
|
|
00000050 2e 00 2b 00 02 03 04 00 33 00 24 00 1d 00 20 2f |..+.....3.$... /|
|
|
00000060 e5 7d a3 47 cd 62 43 15 28 da ac 5f bb 29 07 30 |.}.G.bC.(.._.).0|
|
|
00000070 ff f6 84 af c4 cf c2 ed 90 99 5f 58 cb 3b 74 14 |.........._X.;t.|
|
|
00000080 03 03 00 01 01 17 03 03 00 17 b4 57 fb a1 f4 24 |...........W...$|
|
|
00000090 99 a4 eb ab 7b 09 31 b6 b1 89 4b 17 da 64 4b b6 |....{.1...K..dK.|
|
|
000000a0 7d 17 03 03 00 3e 5e 69 bb 28 4e b0 ba d6 31 ab |}....>^i.(N...1.|
|
|
000000b0 05 ad e9 f3 34 dc bb 28 41 45 42 26 cc 02 f2 2b |....4..(AEB&...+|
|
|
000000c0 96 66 3d cf b2 dd 89 7a 40 f8 44 cb 1e b8 52 01 |.f=....z@.D...R.|
|
|
000000d0 82 ed 90 97 26 54 76 95 2b 69 a0 c6 95 bd e2 5a |....&Tv.+i.....Z|
|
|
000000e0 2b 90 a1 da 17 03 03 02 6d 29 de 48 a1 af 3a 16 |+.......m).H..:.|
|
|
000000f0 e9 51 34 34 0c 56 11 cd 4a 80 88 27 40 01 6e 9a |.Q44.V..J..'@.n.|
|
|
00000100 d3 cc dc 76 00 1f cc 3f b4 d0 8b e8 5e d5 8e 28 |...v...?....^..(|
|
|
00000110 f1 b5 46 ba f6 c0 26 3e bf f1 98 0c 07 6b 34 a7 |..F...&>.....k4.|
|
|
00000120 a4 35 92 47 a7 58 07 b3 7b 0e 17 fb 4f 4d 39 c1 |.5.G.X..{...OM9.|
|
|
00000130 8c 69 56 2f 7c eb 39 17 66 1e ab bc 0f f8 3f bd |.iV/|.9.f.....?.|
|
|
00000140 33 40 ac ed 6f 2c cd 45 5a fa 2b c6 b5 2c b5 46 |3@..o,.EZ.+..,.F|
|
|
00000150 2b 53 7b 5b 61 be c1 78 19 81 58 27 f5 2f a7 04 |+S{[a..x..X'./..|
|
|
00000160 8d ef 67 11 7c d0 42 14 c6 c2 84 f8 d4 ee 4e 68 |..g.|.B.......Nh|
|
|
00000170 d6 de a9 32 a3 5d b0 e1 44 4d 1d 29 e5 39 82 27 |...2.]..DM.).9.'|
|
|
00000180 43 ba 5c 55 eb 70 64 70 ef a1 57 90 a6 82 62 c5 |C.\U.pdp..W...b.|
|
|
00000190 a4 f5 be 35 6d 00 4a b6 2e ac 93 65 ad 85 f4 94 |...5m.J....e....|
|
|
000001a0 40 10 8f 6a 59 ab 54 18 c4 fb e3 97 29 9e ed 3e |@..jY.T.....)..>|
|
|
000001b0 4b 35 dc c4 38 e3 d1 0f 6e cb b9 65 b3 b2 e3 f4 |K5..8...n..e....|
|
|
000001c0 d7 05 df b4 33 7d 26 6f 9b 6b 58 33 b3 86 a4 1c |....3}&o.kX3....|
|
|
000001d0 7b 5e a6 2e 2b 2e ca 99 ad 28 28 87 0b c1 05 75 |{^..+....((....u|
|
|
000001e0 dd e4 e2 d2 66 13 a5 a6 b2 d9 21 4d 7d d6 59 80 |....f.....!M}.Y.|
|
|
000001f0 7a fd fe 66 9e c1 0a fc 9a a3 60 66 28 73 34 db |z..f......`f(s4.|
|
|
00000200 17 0f 3d fd 22 53 e7 c7 74 69 34 ab 5d bd b5 e5 |..=."S..ti4.]...|
|
|
00000210 59 c8 d6 44 85 07 df 98 25 41 27 65 2a c2 54 5b |Y..D....%A'e*.T[|
|
|
00000220 94 8a 07 96 fe 7b 03 eb 37 10 f2 37 30 6b 3e 69 |.....{..7..70k>i|
|
|
00000230 2a c8 3d 48 15 7e 6b 04 58 ed 1f 59 ad e6 8b b2 |*.=H.~k.X..Y....|
|
|
00000240 7e 43 61 a8 a2 3e b7 c9 b5 86 cb be 8a f0 c4 15 |~Ca..>..........|
|
|
00000250 c9 ef 7f e8 d9 3a ca c5 57 dc 6a 85 bb 6b 7b ca |.....:..W.j..k{.|
|
|
00000260 e9 20 5a 0c 5e b9 7c f7 07 fb 9a 62 c0 13 08 c4 |. Z.^.|....b....|
|
|
00000270 87 69 61 c1 54 22 e0 43 9e 1e 8f 0f 2e 01 6e 36 |.ia.T".C......n6|
|
|
00000280 85 13 23 41 22 4d 27 f0 1c 7c 12 78 9f 9a 88 ee |..#A"M'..|.x....|
|
|
00000290 0f 2c 8b bd 3d fb 24 67 72 ef 06 50 1e 25 f9 b5 |.,..=.$gr..P.%..|
|
|
000002a0 ec d6 dc 13 8e 44 7e 15 25 f3 9f e9 c4 d8 2d 15 |.....D~.%.....-.|
|
|
000002b0 f4 06 24 02 2c 24 f2 6e 6e b7 01 b7 92 6d 0b d5 |..$.,$.nn....m..|
|
|
000002c0 df 4b 45 41 b9 86 f9 94 b1 38 d8 3d cd 2e 50 de |.KEA.....8.=..P.|
|
|
000002d0 32 ed 90 c5 f4 f7 ce 00 fa c5 07 6d de 24 54 78 |2..........m.$Tx|
|
|
000002e0 bc 30 e5 a5 70 21 e8 4f 3b 1d ab d9 25 71 72 2f |.0..p!.O;...%qr/|
|
|
000002f0 06 6b 7a fc 4c c9 68 18 7a e8 08 31 5e 1d 53 d6 |.kz.L.h.z..1^.S.|
|
|
00000300 e4 cb b2 f7 cb cc 65 93 63 64 a2 e9 56 40 51 ba |......e.cd..V@Q.|
|
|
00000310 29 e2 4b 27 8e dc 93 ac 12 63 18 6e 64 18 c0 03 |).K'.....c.nd...|
|
|
00000320 51 5c bc b3 a7 29 f9 75 db c7 aa c1 d2 1a 40 31 |Q\...).u......@1|
|
|
00000330 84 42 9b 9f c0 1c 4f 38 0d 4b 4d e9 1c 04 e7 da |.B....O8.KM.....|
|
|
00000340 6d 16 fd dc bb e8 8f 3b d1 1d 6c 2f b2 53 39 86 |m......;..l/.S9.|
|
|
00000350 b3 35 15 e9 a2 73 17 03 03 00 99 fd a2 ed e7 c5 |.5...s..........|
|
|
00000360 1a ab b7 a2 dd 3b fc f6 35 ce 53 26 84 2f e0 da |.....;..5.S&./..|
|
|
00000370 a6 8b 5b e8 67 77 46 7f 0d 92 64 17 48 8e cc 78 |..[.gwF...d.H..x|
|
|
00000380 fc d4 8e 1d b4 2c 26 07 72 2d 37 da 63 74 63 a0 |.....,&.r-7.ctc.|
|
|
00000390 7f e6 59 fc cb a3 8a 8c 17 9e 09 71 fa 1a 61 cd |..Y........q..a.|
|
|
000003a0 86 bf e3 4c f4 cc 75 c1 dc 46 d9 fc a2 f6 c0 a2 |...L..u..F......|
|
|
000003b0 db f0 db ce 29 5a c4 d0 ad a2 48 ce e7 ce 22 be |....)Z....H...".|
|
|
000003c0 9c 14 13 26 4a ff 00 0e 95 3b f3 04 db ca dd 95 |...&J....;......|
|
|
000003d0 df c8 3e cf ee b9 80 8b 94 b8 3e eb 26 97 98 0e |..>.......>.&...|
|
|
000003e0 45 31 78 33 81 f5 8c 00 7d 7f e2 9d 3d 21 35 6f |E1x3....}...=!5o|
|
|
000003f0 1e 96 79 15 17 03 03 00 35 4c 9d a6 ed 2a bf 17 |..y.....5L...*..|
|
|
00000400 cf 84 47 3b 89 86 55 75 bf 5b 81 6e 9f cd 5d c2 |..G;..Uu.[.n..].|
|
|
00000410 e8 7e 46 ad 96 4f 84 f3 6a 8a 47 61 54 29 09 d7 |.~F..O..j.GaT)..|
|
|
00000420 36 ef d7 40 e5 10 ee 2c b6 49 e0 85 80 fa |6..@...,.I....|
|
|
>>> Flow 3 (client to server)
|
|
00000000 14 03 03 00 01 01 17 03 03 01 50 65 76 76 e6 2f |..........Pevv./|
|
|
00000010 27 74 6e 8d 11 6b 90 df 19 90 5e a2 7e 57 73 76 |'tn..k....^.~Wsv|
|
|
00000020 4c f2 53 a2 ec 04 6f ae 3b ad a5 4b a2 14 93 00 |L.S...o.;..K....|
|
|
00000030 86 56 09 5b 83 03 f6 ec 36 3f 45 8d 44 bd a9 3b |.V.[....6?E.D..;|
|
|
00000040 16 76 97 da 30 5b 91 4c 90 d6 6e 14 55 63 3b 0d |.v..0[.L..n.Uc;.|
|
|
00000050 b5 3e e1 53 8e 5a 01 17 b8 02 7f ea 63 2b 1e 14 |.>.S.Z......c+..|
|
|
00000060 be c6 46 6a b9 5a 13 b5 ee a6 6c ce 02 cf aa c5 |..Fj.Z....l.....|
|
|
00000070 48 0b 32 76 db 8f a7 c7 c8 ad 5c 51 bc c2 ea c5 |H.2v......\Q....|
|
|
00000080 6e d5 b7 f9 2a 9c 45 20 9b 67 52 7f 7f e7 c6 41 |n...*.E .gR....A|
|
|
00000090 00 e9 3a c2 1d 28 3d 24 56 66 bf 96 09 ae 15 2d |..:..(=$Vf.....-|
|
|
000000a0 eb ea ae ad 94 5e 20 34 05 df b6 1e 0f 03 7f 15 |.....^ 4........|
|
|
000000b0 4c 41 84 07 51 ba 91 b7 68 21 e1 0b b8 30 e6 10 |LA..Q...h!...0..|
|
|
000000c0 8d 30 cd 07 79 09 8e 5f a7 65 a5 8d a3 28 27 09 |.0..y.._.e...('.|
|
|
000000d0 98 da d5 64 b9 69 e7 30 d4 bc f6 11 5d 64 4b 03 |...d.i.0....]dK.|
|
|
000000e0 0b 5d f5 d5 09 d1 04 d2 d5 37 c2 01 1a a8 b2 c1 |.].......7......|
|
|
000000f0 95 9b 3f 05 eb 3e 19 7c 72 9e 86 b0 a8 9e 18 8d |..?..>.|r.......|
|
|
00000100 58 c4 d2 14 c8 c1 c1 81 1c 2d 74 48 2e 60 61 24 |X........-tH.`a$|
|
|
00000110 81 99 da dd 81 b3 85 3a 61 0f a0 94 b4 31 93 90 |.......:a....1..|
|
|
00000120 1d 25 62 ff 0d 75 bd 5b e5 d6 c8 9a cb 9c 2b 45 |.%b..u.[......+E|
|
|
00000130 0e 9a 28 2d 4c dc 84 9c 18 7f 17 a2 f2 73 1c f9 |..(-L........s..|
|
|
00000140 b7 06 09 e9 ec 88 14 98 24 e6 9b 97 15 f3 6f 2b |........$.....o+|
|
|
00000150 46 ea 0d 25 33 df 98 c4 b4 cb 9f 17 03 03 00 59 |F..%3..........Y|
|
|
00000160 61 d9 d3 a8 1a 90 27 11 31 be 80 dd 5a 2a fa 58 |a.....'.1...Z*.X|
|
|
00000170 f6 1e cc 2e 5e 1d 17 4b 83 cf d7 fb c7 59 83 19 |....^..K.....Y..|
|
|
00000180 65 91 7c ef 91 3d 0d b5 a7 10 a7 52 3d 5c 4a d7 |e.|..=.....R=\J.|
|
|
00000190 b9 39 a2 f4 8b 5d ad f9 56 38 22 1f 87 04 af 62 |.9...]..V8"....b|
|
|
000001a0 9f 89 b8 b5 1f a4 62 0c 11 55 3b 9e 45 b3 50 0b |......b..U;.E.P.|
|
|
000001b0 fc 00 92 64 84 57 72 81 d9 17 03 03 00 35 a1 d4 |...d.Wr......5..|
|
|
000001c0 05 18 56 a4 68 81 33 f0 05 16 7a cf 14 2f 1e 74 |..V.h.3...z../.t|
|
|
000001d0 06 fa 36 49 2c a5 d5 db 7a cc 06 8c c1 05 60 4c |..6I,...z.....`L|
|
|
000001e0 c7 97 81 7c ff fd 9e 82 ba 84 58 64 31 27 82 72 |...|......Xd1'.r|
|
|
000001f0 8c d0 d7 17 03 03 00 13 0c 0b 27 77 f3 bb 57 99 |..........'w..W.|
|
|
00000200 d3 2c 28 bd 95 2f fb 77 26 a6 52 |.,(../.w&.R|
|
|
>>> Flow 4 (server to client)
|
|
00000000 17 03 03 01 ba 6d d5 ba b6 7a 4e c9 c4 1a ff e9 |.....m...zN.....|
|
|
00000010 cf 84 4c 47 b3 bd 21 a4 c7 f9 f1 a2 98 93 23 53 |..LG..!.......#S|
|
|
00000020 35 38 97 25 d2 d2 0e 67 79 a4 48 ad d3 97 6a 7b |58.%...gy.H...j{|
|
|
00000030 09 10 1b 96 12 5d b3 bb 5f a2 47 90 ba 5f 4f b8 |.....].._.G.._O.|
|
|
00000040 67 40 df 14 c5 83 48 54 da 36 d2 6a bc de 62 53 |g@....HT.6.j..bS|
|
|
00000050 22 75 77 08 5e f0 bf 7a 5c 2a eb 1f 63 ce 26 0c |"uw.^..z\*..c.&.|
|
|
00000060 5f c9 6d c9 8f 94 02 de 31 ce 7f 8a 34 8b c2 7c |_.m.....1...4..||
|
|
00000070 6c f4 3e 0a c6 80 d8 3e 9e 87 2c 2a f8 72 64 6a |l.>....>..,*.rdj|
|
|
00000080 09 73 62 c4 ed 86 23 e6 14 a5 14 24 44 4c 2a 37 |.sb...#....$DL*7|
|
|
00000090 d6 38 1d 12 6b 7a 0a 57 8e 88 6d f2 79 7a 75 3f |.8..kz.W..m.yzu?|
|
|
000000a0 0d e8 dc 57 10 80 bc f4 11 c7 b6 3c db 76 d2 9c |...W.......<.v..|
|
|
000000b0 08 b4 79 3e 11 a6 15 0a 4b a9 79 24 91 9a 50 ce |..y>....K.y$..P.|
|
|
000000c0 20 83 ac 97 f1 27 eb 2a 54 9e e3 82 35 07 91 aa | ....'.*T...5...|
|
|
000000d0 61 3b 64 2c ee e0 6d d4 93 82 63 a7 ed b0 d8 cd |a;d,..m...c.....|
|
|
000000e0 10 f6 3f 15 b4 a3 08 96 41 03 6d ba 0a b1 f9 e1 |..?.....A.m.....|
|
|
000000f0 8a b0 26 99 33 40 4a d0 b1 d0 38 3d 05 4d be 62 |..&.3@J...8=.M.b|
|
|
00000100 eb c6 46 ce 6f d2 3c d5 54 5c 84 49 b9 d8 de 06 |..F.o.<.T\.I....|
|
|
00000110 1f 5c 4b e5 ea d7 fb 7e b4 16 81 e4 5b e8 73 99 |.\K....~....[.s.|
|
|
00000120 93 23 48 51 67 53 e0 c9 2c 4f 10 bc 89 aa 34 97 |.#HQgS..,O....4.|
|
|
00000130 9b 2b 37 2c 01 ea bb 06 d1 a5 ff 41 c4 f9 33 ad |.+7,.......A..3.|
|
|
00000140 e1 df 63 51 4c 17 6a 9c c3 95 61 83 81 22 e3 02 |..cQL.j...a.."..|
|
|
00000150 90 d1 d2 9c d4 03 a8 4a f0 fc 30 a8 06 8c 24 2b |.......J..0...$+|
|
|
00000160 70 8d d6 ca 70 5b 83 81 6b 6d 0d 4a d4 c2 b7 f1 |p...p[..km.J....|
|
|
00000170 1e 85 65 4e 52 e7 d0 ba 60 87 6b 21 5d d6 ee 5b |..eNR...`.k!]..[|
|
|
00000180 2c 1e 00 83 9d a8 14 bd df c9 fc 6f 6e dd 41 9f |,..........on.A.|
|
|
00000190 3a ab d8 70 4a 6c 68 3f c3 ba 02 34 e1 a8 a7 80 |:..pJlh?...4....|
|
|
000001a0 08 91 e3 2e 2e bd 04 d9 1f d2 30 17 2e e2 71 5a |..........0...qZ|
|
|
000001b0 d9 21 8b 22 8c 16 9d e7 77 40 28 9a ad f6 0c 17 |.!."....w@(.....|
|
|
000001c0 03 03 00 1e 53 61 12 3f 61 24 db 4f 65 9f 7d b3 |....Sa.?a$.Oe.}.|
|
|
000001d0 65 2b 43 89 a1 bc f0 df a1 59 e4 e5 c0 ed 95 d4 |e+C......Y......|
|
|
000001e0 f9 a3 17 03 03 00 13 5c 7c 76 1f 85 7c f3 67 cc |.......\|v..|.g.|
|
|
000001f0 9d 82 fc bb 6d 48 58 5a b5 a9 |....mHXZ..|
|