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
70
testdata/Client-TLSv12-ECDHE-ECDSA-AES
vendored
70
testdata/Client-TLSv12-ECDHE-ECDSA-AES
vendored
|
@ -9,11 +9,11 @@
|
|||
00000070 0d 00 0e 00 0c 04 01 04 03 05 01 05 03 02 01 02 |................|
|
||||
00000080 03 ff 01 00 01 00 00 12 00 00 |..........|
|
||||
>>> Flow 2 (server to client)
|
||||
00000000 16 03 03 00 59 02 00 00 55 03 03 8a ae 27 5b 39 |....Y...U....'[9|
|
||||
00000010 8b c4 a6 d5 fa 9e 67 9e 6c fe 53 ed ab ec e0 04 |......g.l.S.....|
|
||||
00000020 8d 7c f8 1f d0 db 2e cb 22 4d a1 20 ee 80 5f fc |.|......"M. .._.|
|
||||
00000030 f8 77 8a 23 23 c5 95 81 7f a6 12 f5 e0 19 91 50 |.w.##..........P|
|
||||
00000040 da 75 42 c2 eb 45 bf e2 a5 54 ed 6e c0 09 00 00 |.uB..E...T.n....|
|
||||
00000000 16 03 03 00 59 02 00 00 55 03 03 5b 22 ee ec 51 |....Y...U..["..Q|
|
||||
00000010 c0 d3 6a 91 a2 0f 8f f4 80 f1 9c d0 77 88 7c 99 |..j.........w.|.|
|
||||
00000020 88 ea c9 dc 17 08 9c fb 3b 24 23 20 32 70 dd bd |........;$# 2p..|
|
||||
00000030 39 5a aa 5d a8 52 7a 6f c0 ea ec db ed 21 d3 f3 |9Z.].Rzo.....!..|
|
||||
00000040 c5 80 be 70 0d 02 cf 0c 5e ec ea c6 c0 09 00 00 |...p....^.......|
|
||||
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
||||
00000060 03 02 0e 0b 00 02 0a 00 02 07 00 02 04 30 82 02 |.............0..|
|
||||
00000070 00 30 82 01 62 02 09 00 b8 bf 2d 47 a0 d2 eb f4 |.0..b.....-G....|
|
||||
|
@ -48,21 +48,21 @@
|
|||
00000240 13 83 0d 94 06 bb d4 37 7a f6 ec 7a c9 86 2e dd |.......7z..z....|
|
||||
00000250 d7 11 69 7f 85 7c 56 de fb 31 78 2b e4 c7 78 0d |..i..|V..1x+..x.|
|
||||
00000260 ae cb be 9e 4e 36 24 31 7b 6a 0f 39 95 12 07 8f |....N6$1{j.9....|
|
||||
00000270 2a 16 03 03 00 d7 0c 00 00 d3 03 00 17 41 04 3e |*............A.>|
|
||||
00000280 e3 d6 d6 7b d7 ec 6f 4b 88 50 53 26 5a 2b a6 69 |...{..oK.PS&Z+.i|
|
||||
00000290 25 6f 30 a7 c3 a5 39 5c e2 ca b6 35 a5 30 35 9a |%o0...9\...5.05.|
|
||||
000002a0 35 8f e3 65 bd 4c 47 30 72 9a 4b 32 c4 6d 01 c9 |5..e.LG0r.K2.m..|
|
||||
000002b0 a5 91 d1 cd 0b 79 e2 04 0f a9 9c c2 72 cd 58 04 |.....y......r.X.|
|
||||
000002c0 03 00 8a 30 81 87 02 41 70 01 8c dd 0a 32 db e3 |...0...Ap....2..|
|
||||
000002d0 0b 04 9c d0 64 a1 08 06 b1 cf e3 66 79 1f c0 c1 |....d......fy...|
|
||||
000002e0 14 34 87 a6 e5 52 11 20 12 24 a5 b6 c2 50 63 86 |.4...R. .$...Pc.|
|
||||
000002f0 31 6a e3 85 7d 19 2d 3b 68 bf b7 64 20 37 c7 f9 |1j..}.-;h..d 7..|
|
||||
00000300 76 38 b5 32 84 0b f9 b6 71 02 42 01 89 e3 93 85 |v8.2....q.B.....|
|
||||
00000310 d6 16 8e 44 66 72 d6 9f b3 b1 e9 22 ad 2e f8 49 |...Dfr....."...I|
|
||||
00000320 41 8f 80 f9 0e d4 fd de 35 67 cf 09 ba 65 f7 a1 |A.......5g...e..|
|
||||
00000330 17 a8 c0 b5 a3 cc c0 17 83 af 68 92 5b 5c a9 ce |..........h.[\..|
|
||||
00000340 ce 11 92 93 fe 39 b9 80 19 20 f2 b6 3b 16 03 03 |.....9... ..;...|
|
||||
00000350 00 04 0e 00 00 00 |......|
|
||||
00000270 2a 16 03 03 00 d8 0c 00 00 d4 03 00 17 41 04 6d |*............A.m|
|
||||
00000280 3b 97 b1 5e 12 dd bb cc 94 c2 f3 3e 78 52 e1 c8 |;..^.......>xR..|
|
||||
00000290 35 b7 e3 2b 6b d9 b1 f2 6a 09 22 de 3d 09 a4 53 |5..+k...j.".=..S|
|
||||
000002a0 ee e6 38 af 11 4b 71 fb f6 e4 fe 75 fc fc 32 eb |..8..Kq....u..2.|
|
||||
000002b0 e3 83 5b 75 a5 fc 4a d3 4e 75 14 81 4a 9f d5 04 |..[u..J.Nu..J...|
|
||||
000002c0 03 00 8b 30 81 88 02 42 00 d1 48 44 bc 50 5b b7 |...0...B..HD.P[.|
|
||||
000002d0 f4 ed 83 d3 f9 65 1d 7c 4f 0d 0c 03 e6 fc 9a 15 |.....e.|O.......|
|
||||
000002e0 84 2d e7 3f 99 5f 26 23 59 5f 88 bd 33 69 1b cc |.-.?._&#Y_..3i..|
|
||||
000002f0 f2 a7 1b 18 7f 9b 16 4f 22 16 90 7c cb cb 56 ac |.......O"..|..V.|
|
||||
00000300 9d 93 6e e4 8e 08 42 05 ef 8f 02 42 01 02 2d 66 |..n...B....B..-f|
|
||||
00000310 6f 95 a3 0c 53 39 02 5b ce bd f1 22 e8 b1 ac 02 |o...S9.[..."....|
|
||||
00000320 b0 89 5b 4d 46 5b ed a2 a9 c0 22 9b c0 c0 9a d5 |..[MF[....".....|
|
||||
00000330 0f 95 11 1f 30 bf e5 f1 1b bd 19 1c c2 a8 63 5b |....0.........c[|
|
||||
00000340 86 20 99 60 c3 80 38 33 e2 32 96 ea 26 a4 16 03 |. .`..83.2..&...|
|
||||
00000350 03 00 04 0e 00 00 00 |.......|
|
||||
>>> Flow 3 (client to server)
|
||||
00000000 16 03 03 00 46 10 00 00 42 41 04 1e 18 37 ef 0d |....F...BA...7..|
|
||||
00000010 19 51 88 35 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd |.Q.5uq..T[....g.|
|
||||
|
@ -70,21 +70,21 @@
|
|||
00000030 f1 07 9f 6c 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 |...lK[.V.2B.X..I|
|
||||
00000040 a6 b5 68 1a 41 03 56 6b dc 5a 89 14 03 03 00 01 |..h.A.Vk.Z......|
|
||||
00000050 01 16 03 03 00 40 00 00 00 00 00 00 00 00 00 00 |.....@..........|
|
||||
00000060 00 00 00 00 00 00 39 19 e6 fb c7 28 b4 c9 f5 ba |......9....(....|
|
||||
00000070 a2 44 0a 74 70 18 86 1f 5f c2 3d 99 f5 d7 17 04 |.D.tp..._.=.....|
|
||||
00000080 88 07 a5 06 01 6a 2c 13 55 0b fc 82 75 b5 24 54 |.....j,.U...u.$T|
|
||||
00000090 a0 63 9e f0 ce 92 |.c....|
|
||||
00000060 00 00 00 00 00 00 0b d9 15 a7 d8 15 3f dc a4 f1 |............?...|
|
||||
00000070 16 b7 c4 c2 72 bd e4 32 fd 4a 37 20 f2 8a 03 d4 |....r..2.J7 ....|
|
||||
00000080 30 fe f7 d1 a2 49 dc 70 b8 b2 71 12 b0 07 b0 e4 |0....I.p..q.....|
|
||||
00000090 f8 ec 84 6b 8b 19 |...k..|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 40 15 37 89 e6 1f |..........@.7...|
|
||||
00000010 20 f6 91 b9 1f fb 29 e9 3e 07 ab c2 09 96 06 89 | .....).>.......|
|
||||
00000020 69 c2 dd 63 e1 24 5d cd af 08 e2 ed df 46 45 6b |i..c.$]......FEk|
|
||||
00000030 1e 9f 62 b6 89 27 04 3f fc f2 77 71 23 04 24 37 |..b..'.?..wq#.$7|
|
||||
00000040 74 8a 0a 64 a8 10 e3 1c dc 53 64 |t..d.....Sd|
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 40 af fc e3 71 69 |..........@...qi|
|
||||
00000010 53 92 6c db 65 5f b6 a0 1e 37 f3 f6 17 60 9c c8 |S.l.e_...7...`..|
|
||||
00000020 a4 02 ae ac bb 98 66 e5 15 fb 5b 0e 59 f9 29 36 |......f...[.Y.)6|
|
||||
00000030 c7 45 05 23 d0 3f fb f8 ee 7b 6a 3a 7f 77 ed d1 |.E.#.?...{j:.w..|
|
||||
00000040 02 f6 f5 c5 cd d8 15 a4 7a 24 cd |........z$.|
|
||||
>>> Flow 5 (client to server)
|
||||
00000000 17 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
|
||||
00000010 00 00 00 00 00 ae 4e e7 3a 25 9d 8f fa 06 99 49 |......N.:%.....I|
|
||||
00000020 2e b8 0f 49 d0 54 2d 06 b4 d7 4c 60 51 f1 13 11 |...I.T-...L`Q...|
|
||||
00000030 c1 b3 f5 d0 bc 15 03 03 00 30 00 00 00 00 00 00 |.........0......|
|
||||
00000040 00 00 00 00 00 00 00 00 00 00 80 de bf db 10 74 |...............t|
|
||||
00000050 da 3f d8 77 ca 37 cc f3 96 bd d3 e1 34 9c f2 0a |.?.w.7......4...|
|
||||
00000060 70 60 5e 7c a4 7e c9 bd 89 5f |p`^|.~..._|
|
||||
00000010 00 00 00 00 00 d9 d2 27 be 26 cd 7b d5 11 5e 56 |.......'.&.{..^V|
|
||||
00000020 96 3e f6 07 8a 71 2d 78 ac 66 d3 55 72 3e 28 61 |.>...q-x.f.Ur>(a|
|
||||
00000030 9a 07 96 97 a3 15 03 03 00 30 00 00 00 00 00 00 |.........0......|
|
||||
00000040 00 00 00 00 00 00 00 00 00 00 4c 94 79 c1 09 13 |..........L.y...|
|
||||
00000050 19 a5 25 a8 97 84 b7 94 e6 f6 04 2f 5a cc 4b 4c |..%......../Z.KL|
|
||||
00000060 98 44 c9 91 7d 11 6d 4d 92 47 |.D..}.mM.G|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue