Commit 16860e6
lib: improve Web Cryptography key validation ordering
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: #62749
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 41e7a4b commit 16860e6Copy full SHA for 16860e6
12 files changed
+201-57Lines changed: 201 additions & 57 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/crypto
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/crypto/webcrypto.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/webcrypto.js+36-17Lines changed: 36 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
919 | 919 | |
920 | 920 | |
921 | 921 | |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
| 929 | + |
922 | 930 | |
923 | 931 | |
924 | 932 | |
| ||
997 | 1005 | |
998 | 1006 | |
999 | 1007 | |
| 1008 | + |
| 1009 | + |
| 1010 | + |
| 1011 | + |
| 1012 | + |
| 1013 | + |
| 1014 | + |
1000 | 1015 | |
1001 | 1016 | |
1002 | 1017 | |
| ||
1030 | 1045 | |
1031 | 1046 | |
1032 | 1047 | |
1033 | | - |
1034 | | - |
| 1048 | + |
| 1049 | + |
| 1050 | + |
| 1051 | + |
1035 | 1052 | |
1036 | | - |
1037 | | - |
1038 | | - |
| 1053 | + |
1039 | 1054 | |
1040 | 1055 | |
1041 | 1056 | |
| ||
1120 | 1135 | |
1121 | 1136 | |
1122 | 1137 | |
1123 | | - |
1124 | | - |
1125 | | - |
1126 | | - |
1127 | | - |
1128 | | - |
1129 | | - |
1130 | | - |
1131 | | - |
1132 | | - |
1133 | | - |
1134 | | - |
1135 | 1138 | |
1136 | 1139 | |
1137 | 1140 | |
| ||
1182 | 1185 | |
1183 | 1186 | |
1184 | 1187 | |
| 1188 | + |
| 1189 | + |
| 1190 | + |
| 1191 | + |
| 1192 | + |
| 1193 | + |
| 1194 | + |
| 1195 | + |
1185 | 1196 | |
1186 | 1197 | |
1187 | 1198 | |
| ||
1211 | 1222 | |
1212 | 1223 | |
1213 | 1224 | |
| 1225 | + |
| 1226 | + |
| 1227 | + |
| 1228 | + |
| 1229 | + |
| 1230 | + |
| 1231 | + |
| 1232 | + |
1214 | 1233 | |
1215 | 1234 | |
1216 | 1235 | |
|
Collapse file
test/parallel/test-webcrypto-encrypt-decrypt-aes.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-encrypt-decrypt-aes.js+23-3Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
53 | 53 | |
54 | 54 | |
55 | 55 | |
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
| 68 | + |
69 | 69 | |
70 | 70 | |
71 | 71 | |
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
84 | 100 | |
85 | 101 | |
86 | 102 | |
| ||
112 | 128 | |
113 | 129 | |
114 | 130 | |
| 131 | + |
115 | 132 | |
116 | 133 | |
117 | 134 | |
| ||
149 | 166 | |
150 | 167 | |
151 | 168 | |
| 169 | + |
152 | 170 | |
153 | 171 | |
154 | 172 | |
| ||
188 | 206 | |
189 | 207 | |
190 | 208 | |
| 209 | + |
191 | 210 | |
192 | 211 | |
193 | 212 | |
| ||
225 | 244 | |
226 | 245 | |
227 | 246 | |
| 247 | + |
228 | 248 | |
229 | 249 | |
230 | 250 | |
|
Collapse file
test/parallel/test-webcrypto-encrypt-decrypt-chacha20-poly1305.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-encrypt-decrypt-chacha20-poly1305.js+19-3Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
| 66 | + |
67 | 67 | |
68 | 68 | |
69 | 69 | |
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
81 | 96 | |
82 | 97 | |
83 | 98 | |
| ||
107 | 122 | |
108 | 123 | |
109 | 124 | |
| 125 | + |
110 | 126 | |
111 | 127 | |
112 | 128 | |
|
Collapse file
test/parallel/test-webcrypto-encrypt-decrypt-rsa.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-encrypt-decrypt-rsa.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
147 | 147 | |
148 | 148 | |
149 | 149 | |
150 | | - |
| 150 | + |
151 | 151 | |
152 | 152 | |
153 | 153 | |
| ||
167 | 167 | |
168 | 168 | |
169 | 169 | |
170 | | - |
| 170 | + |
171 | 171 | |
172 | 172 | |
173 | 173 | |
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
194 | | - |
| 194 | + |
195 | 195 | |
196 | 196 | |
197 | 197 | |
| ||
215 | 215 | |
216 | 216 | |
217 | 217 | |
218 | | - |
| 218 | + |
219 | 219 | |
220 | 220 | |
221 | 221 | |
|
Collapse file
test/parallel/test-webcrypto-encrypt-decrypt.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-encrypt-decrypt.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | | - |
| 46 | + |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | 52 | |
53 | | - |
| 53 | + |
54 | 54 | |
55 | 55 | |
56 | 56 | |
| ||
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | | - |
| 91 | + |
92 | 92 | |
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | 97 | |
98 | | - |
| 98 | + |
99 | 99 | |
100 | 100 | |
101 | 101 | |
|
Collapse file
test/parallel/test-webcrypto-sign-verify-ecdsa.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-sign-verify-ecdsa.js+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | | - |
| 91 | + |
92 | 92 | |
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | 100 | |
101 | | - |
| 101 | + |
102 | 102 | |
103 | 103 | |
104 | 104 | |
| ||
210 | 210 | |
211 | 211 | |
212 | 212 | |
213 | | - |
| 213 | + |
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | 217 | |
218 | | - |
| 218 | + |
219 | 219 | |
220 | 220 | |
221 | 221 | |
222 | 222 | |
223 | | - |
| 223 | + |
224 | 224 | |
225 | 225 | |
226 | 226 | |
|
Collapse file
test/parallel/test-webcrypto-sign-verify-eddsa.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-sign-verify-eddsa.js+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
104 | | - |
| 104 | + |
105 | 105 | |
106 | 106 | |
107 | 107 | |
108 | 108 | |
109 | | - |
| 109 | + |
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | 113 | |
114 | | - |
| 114 | + |
115 | 115 | |
116 | 116 | |
117 | 117 | |
| ||
227 | 227 | |
228 | 228 | |
229 | 229 | |
230 | | - |
| 230 | + |
231 | 231 | |
232 | 232 | |
233 | 233 | |
234 | 234 | |
235 | | - |
| 235 | + |
236 | 236 | |
237 | 237 | |
238 | 238 | |
239 | 239 | |
240 | | - |
| 240 | + |
241 | 241 | |
242 | 242 | |
243 | 243 | |
|
Collapse file
test/parallel/test-webcrypto-sign-verify-hmac.js
Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-sign-verify-hmac.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
| ||
165 | 165 | |
166 | 166 | |
167 | 167 | |
168 | | - |
| 168 | + |
169 | 169 | |
170 | 170 | |
171 | 171 | |
|
0 commit comments