mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
crypto/x509: require a NULL parameters for RSA public keys.
The RFC is clear that the Parameters in an AlgorithmIdentifer for an RSA public key must be NULL. BoringSSL enforces this so we have strong evidence that this is a widely compatible change. Embarrassingly enough, the major source of violations of this is us. Go used to get this correct in only one of two places. This was only fixed in 2013 (with 4874bc9b). That's why lots of test certificates are updated in this change. Fixes #16166. Change-Id: Ib9a4551349354c66e730d44eb8cee4ec402ea8ab Reviewed-on: https://go-review.googlesource.com/27312 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
4b4493f2d9
commit
5ad0511ca2
60 changed files with 4478 additions and 4513 deletions
76
testdata/Server-TLSv10-ECDHE-ECDSA-AES
vendored
76
testdata/Server-TLSv10-ECDHE-ECDSA-AES
vendored
|
@ -1,11 +1,11 @@
|
|||
>>> Flow 1 (client to server)
|
||||
00000000 16 03 01 00 5f 01 00 00 5b 03 01 ad 87 94 6b 8a |...._...[.....k.|
|
||||
00000010 38 9e 70 d6 94 8a 73 a9 39 d8 d7 25 ab 47 92 4c |8.p...s.9..%.G.L|
|
||||
00000020 b1 20 8e 4d f3 7b cd 84 5e 13 c1 00 00 04 c0 0a |. .M.{..^.......|
|
||||
00000030 00 ff 02 01 00 00 2d 00 0b 00 04 03 00 01 02 00 |......-.........|
|
||||
00000040 0a 00 1c 00 1a 00 17 00 19 00 1c 00 1b 00 18 00 |................|
|
||||
00000050 1a 00 16 00 0e 00 0d 00 0b 00 0c 00 09 00 0a 00 |................|
|
||||
00000060 0f 00 01 01 |....|
|
||||
00000000 16 03 01 00 5e 01 00 00 5a 03 01 1c 20 d0 13 04 |....^...Z... ...|
|
||||
00000010 97 f2 67 6f ca 9b c0 14 b9 b3 9e 83 a9 53 09 10 |..go.........S..|
|
||||
00000020 60 45 a5 ca 3a 09 25 f1 c6 39 c2 00 00 04 c0 0a |`E..:.%..9......|
|
||||
00000030 00 ff 01 00 00 2d 00 0b 00 04 03 00 01 02 00 0a |.....-..........|
|
||||
00000040 00 1c 00 1a 00 17 00 19 00 1c 00 1b 00 18 00 1a |................|
|
||||
00000050 00 16 00 0e 00 0d 00 0b 00 0c 00 09 00 0a 00 0f |................|
|
||||
00000060 00 01 01 |...|
|
||||
>>> Flow 2 (server to client)
|
||||
00000000 16 03 01 00 31 02 00 00 2d 03 01 00 00 00 00 00 |....1...-.......|
|
||||
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
|
@ -48,36 +48,36 @@
|
|||
00000260 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd a7 24 20 3e |uq..T[....g..$ >|
|
||||
00000270 b2 56 1c ce 97 28 5e f8 2b 2d 4f 9e f1 07 9f 6c |.V...(^.+-O....l|
|
||||
00000280 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 a6 b5 68 1a |K[.V.2B.X..I..h.|
|
||||
00000290 41 03 56 6b dc 5a 89 00 8b 30 81 88 02 42 00 8b |A.Vk.Z...0...B..|
|
||||
000002a0 48 d5 a3 a0 35 5c 31 f5 0b e8 72 7c 87 31 79 af |H...5\1...r|.1y.|
|
||||
000002b0 7f 12 93 9a f9 df d5 44 bf 08 5a 6b 1c 68 dd 73 |.......D..Zk.h.s|
|
||||
000002c0 67 0f 32 41 45 53 bf 74 cf 91 54 e7 7a 88 41 7a |g.2AES.t..T.z.Az|
|
||||
000002d0 15 ea 3d e3 b8 93 c0 3f 24 4c fb ee 25 f1 20 80 |..=....?$L..%. .|
|
||||
000002e0 02 42 01 ab 97 5f 8b 8d 22 71 f9 f5 a3 59 69 42 |.B..._.."q...YiB|
|
||||
000002f0 06 bd 12 f5 61 53 cb c8 a1 b4 90 87 12 94 9b f8 |....aS..........|
|
||||
00000300 b3 1d 34 d9 cd 64 20 9c 92 ec b5 72 35 01 44 3a |..4..d ....r5.D:|
|
||||
00000310 86 e4 54 46 0d 74 1d 4e d8 41 16 eb ac c3 8a 2f |..TF.t.N.A...../|
|
||||
00000320 20 11 ad bc 16 03 01 00 04 0e 00 00 00 | ............|
|
||||
00000290 41 03 56 6b dc 5a 89 00 8b 30 81 88 02 42 00 c2 |A.Vk.Z...0...B..|
|
||||
000002a0 47 1b 12 66 fd 8f a4 95 1d db 94 47 a5 52 97 2d |G..f.......G.R.-|
|
||||
000002b0 1e b6 98 f9 d7 95 c0 84 07 95 40 8a ca 0c 76 07 |..........@...v.|
|
||||
000002c0 ec a7 9c 2e bf 5e cf 59 d0 dd 38 0f 70 9b 38 25 |.....^.Y..8.p.8%|
|
||||
000002d0 7a 2f 24 92 c7 aa fe ec 5c 1c b6 61 30 8b 86 e6 |z/$.....\..a0...|
|
||||
000002e0 02 42 00 c5 8b f0 3a ad a3 0d 95 21 69 b2 e4 e8 |.B....:....!i...|
|
||||
000002f0 d6 ac f7 b8 f3 a8 02 85 d6 32 6e db 00 85 ae 84 |.........2n.....|
|
||||
00000300 59 34 2a 9e 6e d3 c4 fc 4c c6 9f 0f d0 a0 3b 87 |Y4*.n...L.....;.|
|
||||
00000310 ad d7 aa 51 54 4e ad 76 dc 33 66 7a 5c 87 d0 da |...QTN.v.3fz\...|
|
||||
00000320 52 08 04 73 16 03 01 00 04 0e 00 00 00 |R..s.........|
|
||||
>>> Flow 3 (client to server)
|
||||
00000000 16 03 01 00 46 10 00 00 42 41 04 38 ca 59 61 cd |....F...BA.8.Ya.|
|
||||
00000010 17 4a cf a8 0b 81 c6 b7 7f 52 dd 95 d7 57 9d 24 |.J.......R...W.$|
|
||||
00000020 bb b1 02 af 57 ee b9 f9 c5 a0 c3 20 44 e1 9a e4 |....W...... D...|
|
||||
00000030 83 64 7d a1 fa 9d 2e 3b 5e be 0f af ed 96 f3 09 |.d}....;^.......|
|
||||
00000040 62 a2 22 21 72 f8 84 89 8a fd 10 14 03 01 00 01 |b."!r...........|
|
||||
00000050 01 16 03 01 00 30 bd e6 23 e0 32 b8 4c ef ce 9e |.....0..#.2.L...|
|
||||
00000060 22 a5 77 2c f1 7e 2f 8d 8b 9e a5 92 42 f9 0f 02 |".w,.~/.....B...|
|
||||
00000070 eb 2e 94 f1 6d a3 24 3f c0 ae bb c0 c4 99 08 51 |....m.$?.......Q|
|
||||
00000080 47 28 8b 4e f9 02 |G(.N..|
|
||||
00000000 16 03 01 00 46 10 00 00 42 41 04 4d 54 b0 3d 83 |....F...BA.MT.=.|
|
||||
00000010 28 38 7a 5b 69 46 a3 40 50 4a 25 13 e6 9a fd 4c |(8z[iF.@PJ%....L|
|
||||
00000020 fe 93 66 89 f3 11 b0 98 08 7d 0d 87 84 ca 98 4a |..f......}.....J|
|
||||
00000030 4d 3a 8a 50 13 27 ec 89 bd 03 f6 6c 02 2a 8c c6 |M:.P.'.....l.*..|
|
||||
00000040 dd d6 c4 43 fc fa 59 59 4e 96 9a 14 03 01 00 01 |...C..YYN.......|
|
||||
00000050 01 16 03 01 00 30 22 1f 07 a7 54 f9 c7 1c 98 c1 |.....0"...T.....|
|
||||
00000060 2b 89 61 7a 3c 7e 59 1a 2a 73 bd 9d ee 88 76 16 |+.az<~Y.*s....v.|
|
||||
00000070 07 22 08 7a c9 1a 4b ae 30 0e d8 c5 ed 33 dd 6d |.".z..K.0....3.m|
|
||||
00000080 49 01 af 07 d1 0f |I.....|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 01 00 01 01 16 03 01 00 30 11 a9 f0 95 27 |..........0....'|
|
||||
00000010 ac 0a b7 8e 0d 42 0a 2a f8 f8 e2 4f 4f 4a 79 d1 |.....B.*...OOJy.|
|
||||
00000020 73 e6 4d 42 90 3c 06 f8 7b da 26 cc 58 be 97 f6 |s.MB.<..{.&.X...|
|
||||
00000030 41 32 fb 39 2f fa e1 bc 59 2b 45 17 03 01 00 20 |A2.9/...Y+E.... |
|
||||
00000040 93 6a a1 a6 a2 e6 be bb be 2f 8f 0c 52 39 1c 6a |.j......./..R9.j|
|
||||
00000050 6d 4c af 38 f7 60 8b ad 0e c7 62 0c 8b a4 42 14 |mL.8.`....b...B.|
|
||||
00000060 17 03 01 00 30 da b0 1b ef cf 45 86 09 e9 be aa |....0.....E.....|
|
||||
00000070 0f 71 af a3 86 d0 0f 2d e8 76 39 9a c4 1f f5 c2 |.q.....-.v9.....|
|
||||
00000080 82 0a ee 34 0e a6 3b 19 b8 2c 10 ad fc 03 33 31 |...4..;..,....31|
|
||||
00000090 10 42 9b 6e 7b 15 03 01 00 20 ac 73 4d 4b 92 30 |.B.n{.... .sMK.0|
|
||||
000000a0 bf 4c bc 77 c1 87 d7 20 ad 82 bd 75 31 82 0d 34 |.L.w... ...u1..4|
|
||||
000000b0 cb b2 86 fd 4f 9c 84 a3 80 af |....O.....|
|
||||
00000000 14 03 01 00 01 01 16 03 01 00 30 3b f6 c9 51 87 |..........0;..Q.|
|
||||
00000010 ee 8a e4 d4 99 6c d1 3e 88 2b ee 82 b3 4a 39 55 |.....l.>.+...J9U|
|
||||
00000020 13 e8 6b 64 44 cf 1d c8 33 66 b0 e5 17 aa 37 fa |..kdD...3f....7.|
|
||||
00000030 7a e1 b8 55 aa f4 25 c1 19 d7 fb 17 03 01 00 20 |z..U..%........ |
|
||||
00000040 c2 37 83 cf 44 01 b6 00 be 47 90 7d c3 64 1f 52 |.7..D....G.}.d.R|
|
||||
00000050 bb 78 47 8f 7a 6c 36 2e 28 15 4b 0a 65 c2 c1 1f |.xG.zl6.(.K.e...|
|
||||
00000060 17 03 01 00 30 5a fd 09 05 37 3d 3f 66 c9 2d bc |....0Z...7=?f.-.|
|
||||
00000070 b3 0c 32 57 20 4b a7 73 76 09 0f b7 29 6e 43 fc |..2W K.sv...)nC.|
|
||||
00000080 79 db ae aa db ff e5 81 5f 9a fa 21 6f 74 46 2e |y......._..!otF.|
|
||||
00000090 b9 28 c8 d6 80 15 03 01 00 20 7d c9 2e 64 72 41 |.(....... }..drA|
|
||||
000000a0 a0 d8 dc 32 02 06 e5 6f 64 b0 0c 82 78 b5 3f 5f |...2...od...x.?_|
|
||||
000000b0 e7 99 05 3c 52 1d 5a b3 f1 b0 |...<R.Z...|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue