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>
98 lines
7.3 KiB
Text
98 lines
7.3 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 00 ce 01 00 00 ca 03 03 e0 71 48 1b 86 |............qH..|
|
|
00000010 4b eb 3e 47 7c db 98 a9 b7 ba 7b 64 a7 da 8f 51 |K.>G|.....{d...Q|
|
|
00000020 21 18 c4 d2 db 40 16 a9 b2 4d 0b 20 3f e6 7d 6a |!....@...M. ?.}j|
|
|
00000030 5e 87 45 7c 4e 90 11 52 6b fe a7 bf 59 2c 63 f0 |^.E|N..Rk...Y,c.|
|
|
00000040 41 d2 5e df 29 32 0d e4 2f 0c 2c 16 00 04 13 01 |A.^.)2../.,.....|
|
|
00000050 00 ff 01 00 00 7d 00 0b 00 04 03 00 01 02 00 0a |.....}..........|
|
|
00000060 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 00 23 |...............#|
|
|
00000070 00 00 00 16 00 00 00 17 00 00 00 0d 00 1e 00 1c |................|
|
|
00000080 04 03 05 03 06 03 08 07 08 08 08 09 08 0a 08 0b |................|
|
|
00000090 08 04 08 05 08 06 04 01 05 01 06 01 00 2b 00 03 |.............+..|
|
|
000000a0 02 03 04 00 2d 00 02 01 01 00 33 00 26 00 24 00 |....-.....3.&.$.|
|
|
000000b0 1d 00 20 ae b9 17 9c b7 a9 1e 2a d3 5a c8 83 92 |.. .......*.Z...|
|
|
000000c0 dd 47 aa 91 f3 36 68 e6 f8 a6 66 fd 2c 9d 7d 58 |.G...6h...f.,.}X|
|
|
000000d0 3b 81 29 |;.)|
|
|
>>> 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 3f e6 7d 6a |........... ?.}j|
|
|
00000030 5e 87 45 7c 4e 90 11 52 6b fe a7 bf 59 2c 63 f0 |^.E|N..Rk...Y,c.|
|
|
00000040 41 d2 5e df 29 32 0d e4 2f 0c 2c 16 13 01 00 00 |A.^.)2../.,.....|
|
|
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 3c 57 c2 34 7e 2f |..........<W.4~/|
|
|
00000090 62 45 7f 94 6e 8d 72 d2 3f 4f 1a 9b 29 c4 d2 a9 |bE..n.r.?O..)...|
|
|
000000a0 d1 17 03 03 02 6d 12 da d0 63 1f 48 11 d5 5a c2 |.....m...c.H..Z.|
|
|
000000b0 64 c3 a7 57 50 2a 39 ea 6a 24 f2 08 04 29 51 d8 |d..WP*9.j$...)Q.|
|
|
000000c0 27 fc 8b b0 20 3e 04 aa ea 90 aa e9 c5 d9 58 67 |'... >........Xg|
|
|
000000d0 c2 6a 53 ec 52 cd 26 1d 8f c3 1f 34 ae b0 8e ba |.jS.R.&....4....|
|
|
000000e0 d1 d0 e5 00 79 6f b3 83 18 3b fb d7 60 1a 55 ff |....yo...;..`.U.|
|
|
000000f0 12 65 0a b8 0e e0 c9 e6 b8 cf 48 ee dd 33 a7 55 |.e........H..3.U|
|
|
00000100 2d 7d 7e e4 07 16 6d f2 4e 3f 3f be 64 f4 5c 68 |-}~...m.N??.d.\h|
|
|
00000110 82 f0 2a 72 0c ba 16 13 38 be 66 8b bf 01 7e 4d |..*r....8.f...~M|
|
|
00000120 1a 63 cf f5 03 60 b4 72 28 e8 b9 d1 0b b8 f6 b2 |.c...`.r(.......|
|
|
00000130 61 de 7c d0 f3 81 ec 75 ce 64 a4 5f b1 2e 02 d0 |a.|....u.d._....|
|
|
00000140 8f b7 da 2a 6e c3 44 b6 81 eb d0 d2 c8 93 6e d1 |...*n.D.......n.|
|
|
00000150 66 d4 ea 34 a7 f3 39 ef eb 7a 02 0d b2 28 63 af |f..4..9..z...(c.|
|
|
00000160 c3 29 52 e6 97 c0 98 53 8e b0 ff 5f 35 8c 27 55 |.)R....S..._5.'U|
|
|
00000170 0c d8 32 70 16 ad 35 ee 49 2f 2d b6 42 4a a5 60 |..2p..5.I/-.BJ.`|
|
|
00000180 2c e4 c3 36 19 d8 ae 22 71 7f c9 3d 82 01 46 fe |,..6..."q..=..F.|
|
|
00000190 1a 29 dd 72 27 8e 0e 20 ee fe c7 d5 68 5a 56 5a |.).r'.. ....hZVZ|
|
|
000001a0 9c 13 fc f4 ea 53 70 b7 bf 4e 8b 2e 5c 9e d8 ce |.....Sp..N..\...|
|
|
000001b0 c1 ec ae ca aa e5 f7 4a d4 7a fc 8b 0d 1b 09 e9 |.......J.z......|
|
|
000001c0 8a 6d ff bd 32 1a 55 ce 3b 9d af 39 05 74 a1 f6 |.m..2.U.;..9.t..|
|
|
000001d0 6a c8 33 79 d0 f4 2a 62 1f 07 56 0b bc dd 21 b1 |j.3y..*b..V...!.|
|
|
000001e0 51 9a 32 8a d6 07 84 de 26 20 48 2a 9c d4 41 fe |Q.2.....& H*..A.|
|
|
000001f0 ee 47 04 53 e2 ef 1e f5 12 a2 e1 18 26 5e 6a e1 |.G.S........&^j.|
|
|
00000200 d0 aa 07 15 9d eb 80 bd 93 f1 e3 7b f4 63 e8 69 |...........{.c.i|
|
|
00000210 73 6e 54 c4 c2 12 3a 00 44 a0 44 79 13 50 a1 1c |snT...:.D.Dy.P..|
|
|
00000220 83 a5 fe 32 fa 37 51 4f 9c 9a 49 d5 f4 35 18 05 |...2.7QO..I..5..|
|
|
00000230 c6 31 b1 75 52 fc c4 14 4f 23 5f d6 f4 06 7f 34 |.1.uR...O#_....4|
|
|
00000240 d3 24 7e 59 4c 9c 5c 64 e4 d1 31 8a 5d 93 3c 19 |.$~YL.\d..1.].<.|
|
|
00000250 63 8e 72 bf 6c 48 af b5 37 1b 35 ad d0 cd e3 a2 |c.r.lH..7.5.....|
|
|
00000260 9e 86 68 da 82 d7 47 ad 11 60 46 45 ef 3e fa 72 |..h...G..`FE.>.r|
|
|
00000270 9f 4d 14 b5 9c b4 21 91 bc f7 d0 42 88 2e af 60 |.M....!....B...`|
|
|
00000280 ac 78 51 52 82 bd 68 de 61 3d af cb e3 6b c0 0d |.xQR..h.a=...k..|
|
|
00000290 d3 ea 4c fe a0 c6 7e 92 e7 78 6e e8 8c 10 bb 18 |..L...~..xn.....|
|
|
000002a0 6f cb e8 a1 3e 46 24 a6 89 16 f0 e3 74 02 f0 09 |o...>F$.....t...|
|
|
000002b0 be 1e 6c fa 69 8d 3b 66 7e 21 65 0e b7 9a c2 d2 |..l.i.;f~!e.....|
|
|
000002c0 93 13 0a 6a c7 be 0f 3d 6d 20 33 af 13 65 30 54 |...j...=m 3..e0T|
|
|
000002d0 e8 b7 ae 1d 80 1d c8 3c 28 6e da 6e 9a d3 e6 38 |.......<(n.n...8|
|
|
000002e0 a5 d9 e5 08 70 2e c8 67 e8 f8 c0 a1 b3 93 5a 4c |....p..g......ZL|
|
|
000002f0 a2 5e 38 38 87 05 f7 3a 00 3f 1c 11 3d d2 6a 4f |.^88...:.?..=.jO|
|
|
00000300 28 ad b2 5f cb d4 aa bd 25 db c4 5a 99 dc c4 1c |(.._....%..Z....|
|
|
00000310 2c e9 e2 17 03 03 00 99 03 b1 93 f2 6d a4 fd 0c |,...........m...|
|
|
00000320 74 1f 3f b6 a7 bb e7 31 ba e2 34 f1 30 dc 31 85 |t.?....1..4.0.1.|
|
|
00000330 8b ab f8 aa 08 ee 7c 5a af 8c c2 7c ed bb 5d 57 |......|Z...|..]W|
|
|
00000340 b0 80 00 d0 3d 3d eb d9 f5 cb b9 31 a0 ba 39 8f |....==.....1..9.|
|
|
00000350 cd 71 be 6b 33 e7 88 68 b5 4e 74 73 c6 ae d2 b1 |.q.k3..h.Nts....|
|
|
00000360 68 ba d3 72 c1 3a 24 2b cc bd ba 24 44 ec 14 ce |h..r.:$+...$D...|
|
|
00000370 7b 46 96 44 a3 91 48 2f 12 00 b6 47 eb 7a 03 c7 |{F.D..H/...G.z..|
|
|
00000380 9a 59 2c 78 79 4b c6 d3 22 45 07 8f d9 ba 9d c7 |.Y,xyK.."E......|
|
|
00000390 55 23 3f d2 9d ca 33 b2 8e 53 ce 4c 72 49 6a 58 |U#?...3..S.LrIjX|
|
|
000003a0 ad 12 a4 e8 1e 36 7b 2d f7 88 75 19 2f 3b 0a 6b |.....6{-..u./;.k|
|
|
000003b0 81 17 03 03 00 35 4a 0f d8 a6 83 4a 37 2e 29 66 |.....5J....J7.)f|
|
|
000003c0 63 88 0f 7f cd e8 fd b9 40 9c 94 d0 dd 37 c3 2e |c.......@....7..|
|
|
000003d0 1f c6 e0 88 ac df 6e af 57 7b 46 68 4a 51 cc 36 |......n.W{FhJQ.6|
|
|
000003e0 2f e7 ae 66 0e c2 8e 05 4e ec 2b 17 03 03 00 83 |/..f....N.+.....|
|
|
000003f0 c9 1b a8 14 4f c6 47 d2 4a 96 94 cd bc 88 94 ec |....O.G.J.......|
|
|
00000400 80 74 78 36 33 bd f1 f4 76 61 9c 8f 59 88 2a 65 |.tx63...va..Y.*e|
|
|
00000410 af 85 24 e2 d3 6e 74 18 ac 38 52 46 bb 72 56 57 |..$..nt..8RF.rVW|
|
|
00000420 c2 1d 3f 1b 7c 78 c1 e9 21 d0 f1 52 b9 e9 8e 0b |..?.|x..!..R....|
|
|
00000430 3f 85 fd 69 91 fe 8f e8 2d 2c 33 bc 5b bc 18 64 |?..i....-,3.[..d|
|
|
00000440 5c b5 5b 2d 3e 1f b0 6f 89 8c b9 a0 14 9b 45 15 |\.[->..o......E.|
|
|
00000450 0e a8 e2 ce 17 c9 ce d2 45 58 62 39 b9 fb 4d 15 |........EXb9..M.|
|
|
00000460 b1 6d db a4 2e c1 e3 c5 8a 1b 3f 08 96 6d 20 5e |.m........?..m ^|
|
|
00000470 cf 26 8d |.&.|
|
|
>>> Flow 3 (client to server)
|
|
00000000 14 03 03 00 01 01 17 03 03 00 35 45 a8 d5 cc 41 |..........5E...A|
|
|
00000010 5e 79 4c 85 84 da 97 fd 76 e6 68 5f 9a d2 20 8b |^yL.....v.h_.. .|
|
|
00000020 9b 2c 63 b0 d3 de 08 5d 28 0b d7 b3 37 93 56 7c |.,c....](...7.V||
|
|
00000030 cd 95 c6 54 51 e3 72 4e 08 eb 50 7d cc 4e 63 63 |...TQ.rN..P}.Ncc|
|
|
>>> Flow 4 (server to client)
|
|
00000000 17 03 03 00 1e 75 6c 1f 04 3a 4e 62 cd 44 4c 2d |.....ul..:Nb.DL-|
|
|
00000010 dc 14 7a 1b 7f de ca 76 be 44 c7 52 d0 99 fd 4c |..z....v.D.R...L|
|
|
00000020 0f c1 7d 17 03 03 00 13 cd cd 51 e5 c5 d3 9a d8 |..}.......Q.....|
|
|
00000030 f6 8b f5 00 f5 76 9b 9f f1 02 9d |.....v.....|
|