mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-04 12:37:35 +03:00
crypto/x509 already supports PSS signatures (with rsaEncryption OID), and crypto/tls support was added in CL 79736. Advertise support for the algorithms and accept them as a peer. Note that this is about PSS signatures from regular RSA public keys. RSA-PSS only public keys (with RSASSA-PSS OID) are supported in neither crypto/tls nor crypto/x509. See RFC 8446, Section 4.2.3. testdata/Server-TLSv12-ClientAuthRequested* got modified because the CertificateRequest carries the supported signature algorithms. The net/smtp tests changed because 512 bits keys are too small for PSS. Based on Peter Wu's CL 79738, who did all the actual work in CL 79736. Updates #9671 Change-Id: I4a31e9c6e152ff4c50a5c8a274edd610d5fff231 Reviewed-on: https://go-review.googlesource.com/c/146258 Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>
130 lines
9.7 KiB
Text
130 lines
9.7 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 00 a6 01 00 00 a2 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 4d 00 05 |.............M..|
|
|
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 18 00 |................|
|
|
00000080 16 08 04 08 05 08 06 04 01 04 03 05 01 05 03 06 |................|
|
|
00000090 01 06 03 02 01 02 03 ff 01 00 01 00 00 12 00 00 |................|
|
|
000000a0 00 2b 00 07 06 03 03 03 02 03 01 |.+.........|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 59 02 00 00 55 03 03 47 3c 4e 01 1f |....Y...U..G<N..|
|
|
00000010 89 cb e0 8d ce 25 b0 78 28 25 50 d1 e5 ea b6 0a |.....%.x(%P.....|
|
|
00000020 58 9c 27 0f 9b 41 95 a0 94 c2 1f 20 42 a2 5a 4b |X.'..A..... B.ZK|
|
|
00000030 35 b3 13 60 a7 f7 e2 2d 07 69 45 b0 46 52 e6 31 |5..`...-.iE.FR.1|
|
|
00000040 5c 61 b6 24 7e 3a 84 a0 26 5b 2d 6a c0 2f 00 00 |\a.$~:..&[-j./..|
|
|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
|
00000060 03 02 66 0b 00 02 62 00 02 5f 00 02 5c 30 82 02 |..f...b.._..\0..|
|
|
00000070 58 30 82 01 8d a0 03 02 01 02 02 11 00 f2 99 26 |X0.............&|
|
|
00000080 eb 87 ea 8a 0d b9 fc c2 47 34 7c 11 b0 30 41 06 |........G4|..0A.|
|
|
00000090 09 2a 86 48 86 f7 0d 01 01 0a 30 34 a0 0f 30 0d |.*.H......04..0.|
|
|
000000a0 06 09 60 86 48 01 65 03 04 02 01 05 00 a1 1c 30 |..`.H.e........0|
|
|
000000b0 1a 06 09 2a 86 48 86 f7 0d 01 01 08 30 0d 06 09 |...*.H......0...|
|
|
000000c0 60 86 48 01 65 03 04 02 01 05 00 a2 03 02 01 20 |`.H.e.......... |
|
|
000000d0 30 12 31 10 30 0e 06 03 55 04 0a 13 07 41 63 6d |0.1.0...U....Acm|
|
|
000000e0 65 20 43 6f 30 1e 17 0d 31 37 31 31 32 33 31 36 |e Co0...17112316|
|
|
000000f0 31 36 31 30 5a 17 0d 31 38 31 31 32 33 31 36 31 |1610Z..181123161|
|
|
00000100 36 31 30 5a 30 12 31 10 30 0e 06 03 55 04 0a 13 |610Z0.1.0...U...|
|
|
00000110 07 41 63 6d 65 20 43 6f 30 81 9f 30 0d 06 09 2a |.Acme Co0..0...*|
|
|
00000120 86 48 86 f7 0d 01 01 01 05 00 03 81 8d 00 30 81 |.H............0.|
|
|
00000130 89 02 81 81 00 db 46 7d 93 2e 12 27 06 48 bc 06 |......F}...'.H..|
|
|
00000140 28 21 ab 7e c4 b6 a2 5d fe 1e 52 45 88 7a 36 47 |(!.~...]..RE.z6G|
|
|
00000150 a5 08 0d 92 42 5b c2 81 c0 be 97 79 98 40 fb 4f |....B[.....y.@.O|
|
|
00000160 6d 14 fd 2b 13 8b c2 a5 2e 67 d8 d4 09 9e d6 22 |m..+.....g....."|
|
|
00000170 38 b7 4a 0b 74 73 2b c2 34 f1 d1 93 e5 96 d9 74 |8.J.ts+.4......t|
|
|
00000180 7b f3 58 9f 6c 61 3c c0 b0 41 d4 d9 2b 2b 24 23 |{.X.la<..A..++$#|
|
|
00000190 77 5b 1c 3b bd 75 5d ce 20 54 cf a1 63 87 1d 1e |w[.;.u]. T..c...|
|
|
000001a0 24 c4 f3 1d 1a 50 8b aa b6 14 43 ed 97 a7 75 62 |$....P....C...ub|
|
|
000001b0 f4 14 c8 52 d7 02 03 01 00 01 a3 46 30 44 30 0e |...R.......F0D0.|
|
|
000001c0 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 a0 30 13 |..U...........0.|
|
|
000001d0 06 03 55 1d 25 04 0c 30 0a 06 08 2b 06 01 05 05 |..U.%..0...+....|
|
|
000001e0 07 03 01 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 |...0...U.......0|
|
|
000001f0 00 30 0f 06 03 55 1d 11 04 08 30 06 87 04 7f 00 |.0...U....0.....|
|
|
00000200 00 01 30 41 06 09 2a 86 48 86 f7 0d 01 01 0a 30 |..0A..*.H......0|
|
|
00000210 34 a0 0f 30 0d 06 09 60 86 48 01 65 03 04 02 01 |4..0...`.H.e....|
|
|
00000220 05 00 a1 1c 30 1a 06 09 2a 86 48 86 f7 0d 01 01 |....0...*.H.....|
|
|
00000230 08 30 0d 06 09 60 86 48 01 65 03 04 02 01 05 00 |.0...`.H.e......|
|
|
00000240 a2 03 02 01 20 03 81 81 00 cd ac 4e f2 ce 5f 8d |.... ......N.._.|
|
|
00000250 79 88 10 42 70 7f 7c bf 1b 5a 8a 00 ef 19 15 4b |y..Bp.|..Z.....K|
|
|
00000260 40 15 17 71 00 6c d4 16 26 e5 49 6d 56 da 0c 1a |@..q.l..&.ImV...|
|
|
00000270 13 9f d8 46 95 59 3c b6 7f 87 76 5e 18 aa 03 ea |...F.Y<...v^....|
|
|
00000280 06 75 22 dd 78 d2 a5 89 b8 c9 23 64 e1 28 38 ce |.u".x.....#d.(8.|
|
|
00000290 34 6c 6e 06 7b 51 f1 a7 e6 f4 b3 7f fa b1 3f 14 |4ln.{Q........?.|
|
|
000002a0 11 89 66 79 d1 8e 88 0e 0b a0 9e 30 2a c0 67 ef |..fy.......0*.g.|
|
|
000002b0 ca 46 02 88 e9 53 81 22 69 22 97 ad 80 93 d4 f7 |.F...S."i"......|
|
|
000002c0 dd 70 14 24 d7 70 0a 46 a1 16 03 03 00 ac 0c 00 |.p.$.p.F........|
|
|
000002d0 00 a8 03 00 1d 20 e9 f9 44 16 6a 78 7e 81 bd 02 |..... ..D.jx~...|
|
|
000002e0 59 f8 8c 16 89 c1 a8 59 a9 b5 bf 06 32 a0 64 10 |Y......Y....2.d.|
|
|
000002f0 df c3 a2 b4 0b 39 08 04 00 80 01 8b 59 48 c3 0e |.....9......YH..|
|
|
00000300 a2 6b ef 15 87 1e 65 30 fc 72 7b 13 e8 9e 39 00 |.k....e0.r{...9.|
|
|
00000310 a9 9a a4 dd 48 3c 54 88 f0 6b 3f cd 9b 46 c8 8d |....H<T..k?..F..|
|
|
00000320 e8 f2 9b 64 67 d1 18 f0 01 b5 76 8b 0b f1 1a 21 |...dg.....v....!|
|
|
00000330 5e 49 5e 1b e9 39 b5 12 66 ae 0c 19 cb 04 cd c0 |^I^..9..f.......|
|
|
00000340 4d c0 1b 08 24 57 b6 1d c6 1e f6 4c a9 19 e3 62 |M...$W.....L...b|
|
|
00000350 44 1b 26 32 84 0c e3 8a 3a 4f c4 7f 9d 39 77 52 |D.&2....:O...9wR|
|
|
00000360 64 11 43 5a 39 89 50 83 2e 59 3a 88 84 a2 97 dc |d.CZ9.P..Y:.....|
|
|
00000370 6f 6c 55 76 4d 5f 6f 27 ab 08 16 03 03 00 0c 0d |olUvM_o'........|
|
|
00000380 00 00 08 01 01 00 02 08 04 00 00 16 03 03 00 04 |................|
|
|
00000390 0e 00 00 00 |....|
|
|
>>> Flow 3 (client to server)
|
|
00000000 16 03 03 01 fd 0b 00 01 f9 00 01 f6 00 01 f3 30 |...............0|
|
|
00000010 82 01 ef 30 82 01 58 a0 03 02 01 02 02 10 5c 19 |...0..X.......\.|
|
|
00000020 c1 89 65 83 55 6f dc 0b c9 b9 93 9f e9 bc 30 0d |..e.Uo........0.|
|
|
00000030 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 12 31 |..*.H........0.1|
|
|
00000040 10 30 0e 06 03 55 04 0a 13 07 41 63 6d 65 20 43 |.0...U....Acme C|
|
|
00000050 6f 30 1e 17 0d 31 36 30 38 31 37 32 31 35 32 33 |o0...16081721523|
|
|
00000060 31 5a 17 0d 31 37 30 38 31 37 32 31 35 32 33 31 |1Z..170817215231|
|
|
00000070 5a 30 12 31 10 30 0e 06 03 55 04 0a 13 07 41 63 |Z0.1.0...U....Ac|
|
|
00000080 6d 65 20 43 6f 30 81 9f 30 0d 06 09 2a 86 48 86 |me Co0..0...*.H.|
|
|
00000090 f7 0d 01 01 01 05 00 03 81 8d 00 30 81 89 02 81 |...........0....|
|
|
000000a0 81 00 ba 6f aa 86 bd cf bf 9f f2 ef 5c 94 60 78 |...o........\.`x|
|
|
000000b0 6f e8 13 f2 d1 96 6f cd d9 32 6e 22 37 ce 41 f9 |o.....o..2n"7.A.|
|
|
000000c0 ca 5d 29 ac e1 27 da 61 a2 ee 81 cb 10 c7 df 34 |.])..'.a.......4|
|
|
000000d0 58 95 86 e9 3d 19 e6 5c 27 73 60 c8 8d 78 02 f4 |X...=..\'s`..x..|
|
|
000000e0 1d a4 98 09 a3 19 70 69 3c 25 62 66 2a ab 22 23 |......pi<%bf*."#|
|
|
000000f0 c5 7b 85 38 4f 2e 09 73 32 a7 bd 3e 9b ad ca 84 |.{.8O..s2..>....|
|
|
00000100 07 e6 0f 3a ff 77 c5 9d 41 85 00 8a b6 9b ee b0 |...:.w..A.......|
|
|
00000110 a4 3f 2d 4c 4c e6 42 3e bb 51 c8 dd 48 54 f4 0c |.?-LL.B>.Q..HT..|
|
|
00000120 8e 47 02 03 01 00 01 a3 46 30 44 30 0e 06 03 55 |.G......F0D0...U|
|
|
00000130 1d 0f 01 01 ff 04 04 03 02 05 a0 30 13 06 03 55 |...........0...U|
|
|
00000140 1d 25 04 0c 30 0a 06 08 2b 06 01 05 05 07 03 01 |.%..0...+.......|
|
|
00000150 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 0f |0...U.......0.0.|
|
|
00000160 06 03 55 1d 11 04 08 30 06 87 04 7f 00 00 01 30 |..U....0.......0|
|
|
00000170 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 03 81 |...*.H..........|
|
|
00000180 81 00 46 ab 44 a2 fb 28 54 f8 5a 67 f8 62 94 f1 |..F.D..(T.Zg.b..|
|
|
00000190 9a b2 18 9e f2 b1 de 1d 7e 6f 76 95 a9 ba e7 5d |........~ov....]|
|
|
000001a0 a8 16 6c 9c f7 09 d3 37 e4 4b 2b 36 7c 01 ad 41 |..l....7.K+6|..A|
|
|
000001b0 d2 32 d8 c3 d2 93 f9 10 6b 8e 95 b9 2c 17 8a a3 |.2......k...,...|
|
|
000001c0 44 48 bc 59 13 83 16 04 88 a4 81 5c 25 0d 98 0c |DH.Y.......\%...|
|
|
000001d0 ac 11 b1 28 56 be 1d cd 61 62 84 09 bf d6 80 c6 |...(V...ab......|
|
|
000001e0 45 8d 82 2c b4 d8 83 9b db c9 22 b7 2a 12 11 7b |E..,......".*..{|
|
|
000001f0 fa 02 3b c1 c9 ff ea c9 9d a8 49 d3 95 d7 d5 0e |..;.......I.....|
|
|
00000200 e5 35 16 03 03 00 25 10 00 00 21 20 2f e5 7d a3 |.5....%...! /.}.|
|
|
00000210 47 cd 62 43 15 28 da ac 5f bb 29 07 30 ff f6 84 |G.bC.(.._.).0...|
|
|
00000220 af c4 cf c2 ed 90 99 5f 58 cb 3b 74 16 03 03 00 |......._X.;t....|
|
|
00000230 88 0f 00 00 84 08 04 00 80 a6 e4 d6 69 42 65 73 |............iBes|
|
|
00000240 a9 a8 c3 d7 90 1a e2 c2 14 3d 0c 8d 68 28 78 1b |.........=..h(x.|
|
|
00000250 0d d0 63 85 59 4c 2c c0 4d 9a f1 2f e4 8c fa b2 |..c.YL,.M../....|
|
|
00000260 fc 26 62 46 3e b3 50 12 55 44 93 70 37 97 c8 b6 |.&bF>.P.UD.p7...|
|
|
00000270 ce 04 27 67 e0 35 ff bb 3e 5b f3 77 58 5e 7f 53 |..'g.5..>[.wX^.S|
|
|
00000280 a6 19 fd 36 ad c4 96 48 f6 9e 15 e7 ff 9a d1 7b |...6...H.......{|
|
|
00000290 b5 3b d5 39 c8 c1 df c9 dc d3 f8 30 97 4e 42 3a |.;.9.......0.NB:|
|
|
000002a0 fc 98 bf 69 64 08 7d a8 d4 2c 06 88 69 b8 b6 cb |...id.}..,..i...|
|
|
000002b0 c3 b5 e1 f3 ad 43 dd 59 68 14 03 03 00 01 01 16 |.....C.Yh.......|
|
|
000002c0 03 03 00 28 00 00 00 00 00 00 00 00 c6 06 1e 72 |...(...........r|
|
|
000002d0 81 94 ee 05 bc f2 6f 13 46 e8 03 f3 b9 57 ca 8c |......o.F....W..|
|
|
000002e0 14 ac 8e ab 36 6d aa 02 51 e7 12 43 |....6m..Q..C|
|
|
>>> Flow 4 (server to client)
|
|
00000000 14 03 03 00 01 01 16 03 03 00 28 8c 12 31 b7 59 |..........(..1.Y|
|
|
00000010 c1 9b 7f 03 c5 dd ec f9 94 12 b6 7e 5b 05 66 60 |...........~[.f`|
|
|
00000020 de 54 1f 0c 62 ac 27 8e 3f f8 00 3e 6a 9b d6 f8 |.T..b.'.?..>j...|
|
|
00000030 05 e3 57 |..W|
|
|
>>> Flow 5 (client to server)
|
|
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 66 0d d6 |.............f..|
|
|
00000010 a4 72 eb a6 81 50 e3 a6 58 44 1c e7 3e a3 3c 30 |.r...P..XD..>.<0|
|
|
00000020 be 58 58 15 03 03 00 1a 00 00 00 00 00 00 00 02 |.XX.............|
|
|
00000030 d7 0d af 5b 93 61 ff 24 35 a4 6f cd 98 0a fc a8 |...[.a.$5.o.....|
|
|
00000040 35 cb |5.|
|