utls/testdata/Server-TLSv12-ALPN-Fallback
Filippo Valsorda 65b9e15fc2 crypto/tls: reduce session ticket linkability
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>
2023-05-24 23:56:24 +00:00

90 lines
6.7 KiB
Text

>>> Flow 1 (client to server)
00000000 16 03 01 00 a6 01 00 00 a2 03 03 90 5c 4c fb cb |............\L..|
00000010 af 3c 20 5e a0 4f 38 dd 9e 1b 0f 59 d1 30 78 aa |.< ^.O8....Y.0x.|
00000020 27 0b 8f c4 e3 c4 54 1f a8 05 ed 00 00 04 cc a8 |'.....T.........|
00000030 00 ff 01 00 00 75 00 0b 00 04 03 00 01 02 00 0a |.....u..........|
00000040 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 00 23 |...............#|
00000050 00 00 00 10 00 19 00 17 06 70 72 6f 74 6f 33 08 |.........proto3.|
00000060 68 74 74 70 2f 31 2e 31 06 70 72 6f 74 6f 34 00 |http/1.1.proto4.|
00000070 16 00 00 00 17 00 00 00 0d 00 30 00 2e 04 03 05 |..........0.....|
00000080 03 06 03 08 07 08 08 08 09 08 0a 08 0b 08 04 08 |................|
00000090 05 08 06 04 01 05 01 06 01 03 03 02 03 03 01 02 |................|
000000a0 01 03 02 02 02 04 02 05 02 06 02 |...........|
>>> Flow 2 (server to client)
00000000 16 03 03 00 3b 02 00 00 37 03 03 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 01 00 cc a8 00 00 |...DOWNGRD......|
00000030 0f 00 23 00 00 ff 01 00 01 00 00 0b 00 02 01 00 |..#.............|
00000040 16 03 03 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 03 00 ac 0c 00 00 a8 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 08 04 00 80 88 |......_X.;t.....|
000002d0 a6 17 7f f7 b9 ee 12 26 b8 0c b6 c5 fe 7b 0b cb |.......&.....{..|
000002e0 c3 79 dd 67 12 49 f1 0c b7 2f a4 c9 f6 65 83 63 |.y.g.I.../...e.c|
000002f0 3e 6b e9 b3 60 e8 db a5 62 5a 41 9d 9a 63 07 df |>k..`...bZA..c..|
00000300 19 66 55 80 30 56 27 a4 04 f0 92 73 c9 1a 81 26 |.fU.0V'....s...&|
00000310 c1 aa b1 56 4e bf 1c 04 a7 6b aa 63 72 5c c3 d9 |...VN....k.cr\..|
00000320 8e d9 c6 bb b9 b0 bc 31 90 e4 c3 6d 36 04 cc 34 |.......1...m6..4|
00000330 32 83 99 4a d5 75 ce c3 6c ef e1 55 89 1c 1d 80 |2..J.u..l..U....|
00000340 86 b1 07 2f 5b 03 63 97 9a 8c 9e 33 13 18 fb 16 |.../[.c....3....|
00000350 03 03 00 04 0e 00 00 00 |........|
>>> Flow 3 (client to server)
00000000 16 03 03 00 25 10 00 00 21 20 5e a8 04 6a 75 cb |....%...! ^..ju.|
00000010 4e a8 af 5a 33 be 07 d2 0e e0 72 44 48 10 46 df |N..Z3.....rDH.F.|
00000020 08 97 9c 53 7b e8 c1 37 16 73 14 03 03 00 01 01 |...S{..7.s......|
00000030 16 03 03 00 20 f1 80 5f 6e a6 99 39 64 a8 1d e6 |.... .._n..9d...|
00000040 5d c9 03 7d b5 00 78 fb 09 46 ce 65 75 3d 34 d5 |]..}..x..F.eu=4.|
00000050 48 cb 50 a5 b4 |H.P..|
>>> Flow 4 (server to client)
00000000 16 03 03 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 6f e0 18 83 51 ed 14 ef 68 ca 42 c5 4c 81 6e af |o...Q...h.B.L.n.|
00000030 71 0a 8a c0 25 ed 47 8c e2 48 bd 70 b6 db d4 3a |q...%.G..H.p...:|
00000040 a4 bf 9e f2 73 57 23 12 0c 3f ab 29 0b 98 c6 14 |....sW#..?.)....|
00000050 b7 5d 8b 90 4f a0 62 88 0f 04 19 33 cb 49 38 16 |.]..O.b....3.I8.|
00000060 dc 52 be a8 9d af 25 3c 7b 13 27 79 4e 66 ff fa |.R....%<{.'yNf..|
00000070 a7 68 27 c5 bc fe 2a 7e 49 54 4b db a1 9e 62 bf |.h'...*~ITK...b.|
00000080 14 03 03 00 01 01 16 03 03 00 20 32 61 a0 7c 8a |.......... 2a.|.|
00000090 f5 8b 55 ca 44 54 b8 0c 24 62 4f 06 81 26 27 24 |..U.DT..$bO..&'$|
000000a0 38 f2 92 e3 43 fb 5a 13 c4 b3 57 17 03 03 00 1d |8...C.Z...W.....|
000000b0 60 c5 bf 3c 84 0e ec 68 e9 d3 87 fd 0d 2e 3d ba |`..<...h......=.|
000000c0 6e 44 6d 96 f3 60 59 65 d8 25 3f 3a cb 15 03 03 |nDm..`Ye.%?:....|
000000d0 00 12 fa 43 46 3f d4 38 05 2b ea 7b 96 a0 fc d8 |...CF?.8.+.{....|
000000e0 b7 fe e1 54 |...T|