mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +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>
91 lines
6.8 KiB
Text
91 lines
6.8 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 00 55 01 00 00 51 03 01 f5 f3 42 9e 4a |....U...Q....B.J|
|
|
00000010 f4 5f cc c5 18 d0 77 f2 9f 1a 37 d7 44 6b f5 09 |._....w...7.Dk..|
|
|
00000020 69 ab 8b ee d7 1c 63 8d 95 59 bc 00 00 04 c0 14 |i.....c..Y......|
|
|
00000030 00 ff 01 00 00 24 00 0b 00 04 03 00 01 02 00 0a |.....$..........|
|
|
00000040 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 00 23 |...............#|
|
|
00000050 00 00 00 16 00 00 00 17 00 00 |..........|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 01 00 3b 02 00 00 37 03 01 00 00 00 00 00 |....;...7.......|
|
|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000020 00 00 00 44 4f 57 4e 47 52 44 00 00 c0 14 00 00 |...DOWNGRD......|
|
|
00000030 0f 00 23 00 00 ff 01 00 01 00 00 0b 00 02 01 00 |..#.............|
|
|
00000040 16 03 01 02 59 0b 00 02 55 00 02 52 00 02 4f 30 |....Y...U..R..O0|
|
|
00000050 82 02 4b 30 82 01 b4 a0 03 02 01 02 02 09 00 e8 |..K0............|
|
|
00000060 f0 9d 3f e2 5b ea a6 30 0d 06 09 2a 86 48 86 f7 |..?.[..0...*.H..|
|
|
00000070 0d 01 01 0b 05 00 30 1f 31 0b 30 09 06 03 55 04 |......0.1.0...U.|
|
|
00000080 0a 13 02 47 6f 31 10 30 0e 06 03 55 04 03 13 07 |...Go1.0...U....|
|
|
00000090 47 6f 20 52 6f 6f 74 30 1e 17 0d 31 36 30 31 30 |Go Root0...16010|
|
|
000000a0 31 30 30 30 30 30 30 5a 17 0d 32 35 30 31 30 31 |1000000Z..250101|
|
|
000000b0 30 30 30 30 30 30 5a 30 1a 31 0b 30 09 06 03 55 |000000Z0.1.0...U|
|
|
000000c0 04 0a 13 02 47 6f 31 0b 30 09 06 03 55 04 03 13 |....Go1.0...U...|
|
|
000000d0 02 47 6f 30 81 9f 30 0d 06 09 2a 86 48 86 f7 0d |.Go0..0...*.H...|
|
|
000000e0 01 01 01 05 00 03 81 8d 00 30 81 89 02 81 81 00 |.........0......|
|
|
000000f0 db 46 7d 93 2e 12 27 06 48 bc 06 28 21 ab 7e c4 |.F}...'.H..(!.~.|
|
|
00000100 b6 a2 5d fe 1e 52 45 88 7a 36 47 a5 08 0d 92 42 |..]..RE.z6G....B|
|
|
00000110 5b c2 81 c0 be 97 79 98 40 fb 4f 6d 14 fd 2b 13 |[.....y.@.Om..+.|
|
|
00000120 8b c2 a5 2e 67 d8 d4 09 9e d6 22 38 b7 4a 0b 74 |....g....."8.J.t|
|
|
00000130 73 2b c2 34 f1 d1 93 e5 96 d9 74 7b f3 58 9f 6c |s+.4......t{.X.l|
|
|
00000140 61 3c c0 b0 41 d4 d9 2b 2b 24 23 77 5b 1c 3b bd |a<..A..++$#w[.;.|
|
|
00000150 75 5d ce 20 54 cf a1 63 87 1d 1e 24 c4 f3 1d 1a |u]. T..c...$....|
|
|
00000160 50 8b aa b6 14 43 ed 97 a7 75 62 f4 14 c8 52 d7 |P....C...ub...R.|
|
|
00000170 02 03 01 00 01 a3 81 93 30 81 90 30 0e 06 03 55 |........0..0...U|
|
|
00000180 1d 0f 01 01 ff 04 04 03 02 05 a0 30 1d 06 03 55 |...........0...U|
|
|
00000190 1d 25 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 |.%..0...+.......|
|
|
000001a0 06 08 2b 06 01 05 05 07 03 02 30 0c 06 03 55 1d |..+.......0...U.|
|
|
000001b0 13 01 01 ff 04 02 30 00 30 19 06 03 55 1d 0e 04 |......0.0...U...|
|
|
000001c0 12 04 10 9f 91 16 1f 43 43 3e 49 a6 de 6d b6 80 |.......CC>I..m..|
|
|
000001d0 d7 9f 60 30 1b 06 03 55 1d 23 04 14 30 12 80 10 |..`0...U.#..0...|
|
|
000001e0 48 13 49 4d 13 7e 16 31 bb a3 01 d5 ac ab 6e 7b |H.IM.~.1......n{|
|
|
000001f0 30 19 06 03 55 1d 11 04 12 30 10 82 0e 65 78 61 |0...U....0...exa|
|
|
00000200 6d 70 6c 65 2e 67 6f 6c 61 6e 67 30 0d 06 09 2a |mple.golang0...*|
|
|
00000210 86 48 86 f7 0d 01 01 0b 05 00 03 81 81 00 9d 30 |.H.............0|
|
|
00000220 cc 40 2b 5b 50 a0 61 cb ba e5 53 58 e1 ed 83 28 |.@+[P.a...SX...(|
|
|
00000230 a9 58 1a a9 38 a4 95 a1 ac 31 5a 1a 84 66 3d 43 |.X..8....1Z..f=C|
|
|
00000240 d3 2d d9 0b f2 97 df d3 20 64 38 92 24 3a 00 bc |.-...... d8.$:..|
|
|
00000250 cf 9c 7d b7 40 20 01 5f aa d3 16 61 09 a2 76 fd |..}.@ ._...a..v.|
|
|
00000260 13 c3 cc e1 0c 5c ee b1 87 82 f1 6c 04 ed 73 bb |.....\.....l..s.|
|
|
00000270 b3 43 77 8d 0c 1c f1 0f a1 d8 40 83 61 c9 4c 72 |.Cw.......@.a.Lr|
|
|
00000280 2b 9d ae db 46 06 06 4d f4 c1 b3 3e c0 d1 bd 42 |+...F..M...>...B|
|
|
00000290 d4 db fe 3d 13 60 84 5c 21 d3 3b e9 fa e7 16 03 |...=.`.\!.;.....|
|
|
000002a0 01 00 aa 0c 00 00 a6 03 00 1d 20 2f e5 7d a3 47 |.......... /.}.G|
|
|
000002b0 cd 62 43 15 28 da ac 5f bb 29 07 30 ff f6 84 af |.bC.(.._.).0....|
|
|
000002c0 c4 cf c2 ed 90 99 5f 58 cb 3b 74 00 80 3f 8b 3e |......_X.;t..?.>|
|
|
000002d0 b0 29 ea c2 25 87 26 bb 69 0d b8 52 18 d4 82 19 |.)..%.&.i..R....|
|
|
000002e0 90 3b e9 dc 77 94 61 fe 69 95 9f 50 85 34 c5 dd |.;..w.a.i..P.4..|
|
|
000002f0 c0 a1 d5 d6 83 e4 e3 ba 8c f7 6e 39 e0 14 94 30 |..........n9...0|
|
|
00000300 34 16 f0 5b c0 32 92 a3 21 8e 21 c8 57 05 16 a3 |4..[.2..!.!.W...|
|
|
00000310 ea 66 0a 29 20 14 32 e2 f6 b2 7f 17 04 dc 8f 1b |.f.) .2.........|
|
|
00000320 2c 56 50 75 bf 84 c7 11 84 18 a3 05 08 1a 3a e4 |,VPu..........:.|
|
|
00000330 16 ec f2 b5 1f 29 9b 56 8f 5c 9c f2 91 3e 09 5e |.....).V.\...>.^|
|
|
00000340 c7 59 45 12 37 39 06 c5 11 3c fc ee 49 16 03 01 |.YE.79...<..I...|
|
|
00000350 00 04 0e 00 00 00 |......|
|
|
>>> Flow 3 (client to server)
|
|
00000000 16 03 01 00 25 10 00 00 21 20 a1 f8 df c3 de d5 |....%...! ......|
|
|
00000010 70 2f 18 10 4e 4e 86 18 ae 89 a5 4a 34 81 40 f8 |p/..NN.....J4.@.|
|
|
00000020 9d a6 f4 cf b0 5b b5 43 54 08 14 03 01 00 01 01 |.....[.CT.......|
|
|
00000030 16 03 01 00 30 86 24 e7 70 5c ea 25 e3 65 63 b5 |....0.$.p\.%.ec.|
|
|
00000040 91 de 82 c3 23 ce b1 68 0c b4 a0 f3 ae 5d 46 cd |....#..h.....]F.|
|
|
00000050 90 ce 4f 4c b0 c7 14 13 60 17 32 b4 fc 2a 0b 49 |..OL....`.2..*.I|
|
|
00000060 8d 0e 3d e8 2a |..=.*|
|
|
>>> Flow 4 (server to client)
|
|
00000000 16 03 01 00 7b 04 00 00 77 00 00 00 00 00 71 00 |....{...w.....q.|
|
|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 94 |................|
|
|
00000020 6d ec a4 83 51 ed 14 ef 68 ca 42 c5 4c fe ae 28 |m...Q...h.B.L..(|
|
|
00000030 76 e9 99 d7 d3 45 dd ff bd 64 54 a3 a8 bf 69 17 |v....E...dT...i.|
|
|
00000040 28 b5 cb bb 13 1c e8 a8 9c f8 a7 43 81 9d 1d bc |(..........C....|
|
|
00000050 00 96 83 1d cc da 66 d7 20 e1 52 44 b4 49 38 16 |......f. .RD.I8.|
|
|
00000060 56 c5 9e be 43 6c 3c 82 7a 50 fd d6 e6 00 99 27 |V...Cl<.zP.....'|
|
|
00000070 49 a1 65 7b cb 82 3f 9a 74 17 08 2b fd 7b de db |I.e{..?.t..+.{..|
|
|
00000080 14 03 01 00 01 01 16 03 01 00 30 eb 9f f3 b2 32 |..........0....2|
|
|
00000090 44 c2 58 ab 22 7f 41 a0 30 84 71 18 7a df 48 6b |D.X.".A.0.q.z.Hk|
|
|
000000a0 c7 2d 8b 8e 8f 8c 7f 5d 58 7c 2c 61 5d 0d bc ce |.-.....]X|,a]...|
|
|
000000b0 60 f0 47 b3 e2 86 5a 82 30 26 95 17 03 01 00 20 |`.G...Z.0&..... |
|
|
000000c0 12 3e 23 0a f5 97 2a 6b bf be f4 82 7b 31 92 9e |.>#...*k....{1..|
|
|
000000d0 32 c9 1f 4f 8e cc 74 5e 41 da ff 45 68 3c 82 07 |2..O..t^A..Eh<..|
|
|
000000e0 17 03 01 00 30 31 73 bb fd 8e ba 4d c3 74 14 9b |....01s....M.t..|
|
|
000000f0 81 c0 69 38 e6 32 86 35 b2 fb 2a af 2c 69 c1 ca |..i8.2.5..*.,i..|
|
|
00000100 0c 94 35 9a fa 7b ab b4 04 1e 56 6f 59 f9 40 38 |..5..{....VoY.@8|
|
|
00000110 e6 a9 20 96 15 15 03 01 00 20 09 20 d5 0e cd 68 |.. ...... . ...h|
|
|
00000120 79 de ea 6b 0e 84 98 e5 75 64 c4 e8 b1 9f c4 cc |y..k....ud......|
|
|
00000130 d6 4c b6 be cf 42 78 c6 6a 2e |.L...Bx.j.|
|