Adapt uTLS for new TLS 1.3 code

This commit is contained in:
Sergey Frolov 2018-12-05 14:38:38 -07:00
parent 23b79cad14
commit 109af06ea2
32 changed files with 1582 additions and 1208 deletions

View file

@ -1,20 +1,23 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 95 01 00 00 91 03 03 00 00 00 00 00 |................|
00000000 16 03 01 00 c6 01 00 00 c2 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 00 00 2c cc a8 |.............,..|
00000030 cc a9 c0 2f c0 2b c0 30 c0 2c c0 27 c0 13 c0 23 |.../.+.0.,.'...#|
00000040 c0 09 c0 14 c0 0a 00 9c 00 9d 00 3c 00 2f 00 35 |...........<./.5|
00000050 c0 12 00 0a 00 05 c0 11 c0 07 01 00 00 3c 00 05 |.............<..|
00000060 00 05 01 00 00 00 00 00 0a 00 0a 00 08 00 1d 00 |................|
00000070 17 00 18 00 19 00 0b 00 02 01 00 00 0d 00 12 00 |................|
00000080 10 04 01 04 03 05 01 05 03 06 01 06 03 02 01 02 |................|
00000090 03 ff 01 00 01 00 00 12 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 2c cc a8 |.............,..|
00000050 cc a9 c0 2f c0 2b c0 30 c0 2c c0 27 c0 13 c0 23 |.../.+.0.,.'...#|
00000060 c0 09 c0 14 c0 0a 00 9c 00 9d 00 3c 00 2f 00 35 |...........<./.5|
00000070 c0 12 00 0a 00 05 c0 11 c0 07 01 00 00 4d 00 05 |.............M..|
00000080 00 05 01 00 00 00 00 00 0a 00 0a 00 08 00 1d 00 |................|
00000090 17 00 18 00 19 00 0b 00 02 01 00 00 0d 00 18 00 |................|
000000a0 16 08 04 08 05 08 06 04 01 04 03 05 01 05 03 06 |................|
000000b0 01 06 03 02 01 02 03 ff 01 00 01 00 00 12 00 00 |................|
000000c0 00 2b 00 07 06 03 03 03 02 03 01 |.+.........|
>>> Flow 2 (server to client)
00000000 16 03 03 00 51 02 00 00 4d 03 03 51 12 cc 2a 1b |....Q...M..Q..*.|
00000010 8b 7c 80 a2 77 de 87 93 f4 82 77 21 04 14 95 38 |.|..w.....w!...8|
00000020 fd c6 2f f4 17 8b e0 75 ce 89 4e 20 30 b7 55 b0 |../....u..N 0.U.|
00000030 83 93 8d 5d ec 9f 7c 8c 10 d0 0d 4e 94 32 5a cf |...]..|....N.2Z.|
00000040 5e 8d cc 1b c4 75 17 5f 24 fa 13 0d 00 9c 00 00 |^....u._$.......|
00000000 16 03 03 00 51 02 00 00 4d 03 03 25 53 6d 66 b9 |....Q...M..%Smf.|
00000010 79 9f 70 3b 4d 7d bc 0f f0 1d ee 39 2f 58 fa 9e |y.p;M}.....9/X..|
00000020 8c eb 83 b8 6f 12 68 80 76 df 14 20 ad ea c7 14 |....o.h.v.. ....|
00000030 09 53 24 90 56 14 99 6a 09 c5 0a 23 78 87 01 f2 |.S$.V..j...#x...|
00000040 54 a3 24 24 36 fc d1 cd b4 5d c2 cc 00 9c 00 00 |T.$$6....]......|
00000050 05 ff 01 00 01 00 16 03 03 02 59 0b 00 02 55 00 |..........Y...U.|
00000060 02 52 00 02 4f 30 82 02 4b 30 82 01 b4 a0 03 02 |.R..O0..K0......|
00000070 01 02 02 09 00 e8 f0 9d 3f e2 5b ea a6 30 0d 06 |........?.[..0..|
@ -64,17 +67,17 @@
00000060 c5 70 0f 08 83 48 e9 48 ef 6e 50 8b 05 7e e5 84 |.p...H.H.nP..~..|
00000070 25 fa 55 c7 ae 31 02 27 00 ef 3f 98 86 20 12 89 |%.U..1.'..?.. ..|
00000080 91 59 28 b4 f7 d7 af d2 69 61 35 14 03 03 00 01 |.Y(.....ia5.....|
00000090 01 16 03 03 00 28 00 00 00 00 00 00 00 00 11 55 |.....(.........U|
000000a0 a7 e3 e1 ad 7f 61 9b 09 f3 06 be d8 05 86 1e 65 |.....a.........e|
000000b0 bd 16 47 13 9c 17 ce fc e5 40 e8 64 3e d6 |..G......@.d>.|
00000090 01 16 03 03 00 28 00 00 00 00 00 00 00 00 e8 67 |.....(.........g|
000000a0 29 c3 34 6c 2d 13 a6 85 09 60 18 9a f5 92 08 a2 |).4l-....`......|
000000b0 2d a6 a5 b5 f1 91 fd 74 b6 f0 d1 23 10 d8 |-......t...#..|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 28 d1 9f 63 f8 33 |..........(..c.3|
00000010 bb b1 db e7 32 1a c5 83 59 3e c9 a9 ce 9c 7a 66 |....2...Y>....zf|
00000020 56 a4 7d 6f d7 a6 6a 8e 05 4a 3b cd 1d a0 66 9e |V.}o..j..J;...f.|
00000030 66 61 e0 |fa.|
00000000 14 03 03 00 01 01 16 03 03 00 28 90 2f e3 b2 ae |..........(./...|
00000010 a0 49 e0 a6 71 fa 20 98 2c 6a 65 78 b3 63 89 a1 |.I..q. .,jex.c..|
00000020 1f 19 ee 33 57 02 68 21 d6 0f 2b d0 cf 41 8c f7 |...3W.h!..+..A..|
00000030 1f 66 3d |.f=|
>>> Flow 5 (client to server)
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 92 0d 47 |...............G|
00000010 ac aa 60 4d df 84 db 41 cc 9e 7b dd e0 d5 63 fe |..`M...A..{...c.|
00000020 8d 6f 3e 15 03 03 00 1a 00 00 00 00 00 00 00 02 |.o>.............|
00000030 68 de a9 3b a0 ed 1d 5a ef 67 11 59 86 04 d3 ed |h..;...Z.g.Y....|
00000040 c7 ae |..|
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 f6 2a 46 |..............*F|
00000010 c4 7f 93 01 a2 5b 47 1f f1 ec 16 3c 58 55 48 94 |.....[G....<XUH.|
00000020 2c 3c 06 15 03 03 00 1a 00 00 00 00 00 00 00 02 |,<..............|
00000030 6f 5e 44 ff 0f 63 fd 52 65 9c ac 64 11 01 90 04 |o^D..c.Re..d....|
00000040 09 07 |..|