Commit 8752b60
crypto: deduplicate and canonicalize CryptoKey usages
Fixes: #62899
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: #62902
Backport-PR-URL: #63173
Fixes: #62899
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent aa1e0bc commit 8752b60Copy full SHA for 8752b60
12 files changed
+599-25Lines changed: 599 additions & 25 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
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
| ||
205 | 204 | |
206 | 205 | |
207 | 206 | |
208 | | - |
| 207 | + |
209 | 208 | |
210 | 209 | |
211 | 210 | |
| ||
300 | 299 | |
301 | 300 | |
302 | 301 | |
303 | | - |
| 302 | + |
304 | 303 | |
305 | 304 | |
306 | 305 | |
|
Collapse file
lib/internal/crypto/cfrg.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/cfrg.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
171 | 171 | |
172 | 172 | |
173 | 173 | |
174 | | - |
| 174 | + |
175 | 175 | |
176 | 176 | |
177 | 177 | |
| ||
340 | 340 | |
341 | 341 | |
342 | 342 | |
343 | | - |
| 343 | + |
344 | 344 | |
345 | 345 | |
346 | 346 | |
|
Collapse file
lib/internal/crypto/chacha20_poly1305.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/chacha20_poly1305.js+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
| ||
76 | 75 | |
77 | 76 | |
78 | 77 | |
79 | | - |
| 78 | + |
80 | 79 | |
81 | 80 | |
82 | 81 | |
| ||
155 | 154 | |
156 | 155 | |
157 | 156 | |
158 | | - |
| 157 | + |
159 | 158 | |
160 | 159 | |
161 | 160 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
| 117 | + |
118 | 118 | |
119 | 119 | |
120 | 120 | |
| ||
280 | 280 | |
281 | 281 | |
282 | 282 | |
283 | | - |
| 283 | + |
284 | 284 | |
285 | 285 | |
286 | 286 | |
|
Collapse file
lib/internal/crypto/keys.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/keys.js+3-2Lines changed: 3 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 | |
| ||
1094 | 1095 | |
1095 | 1096 | |
1096 | 1097 | |
1097 | | - |
| 1098 | + |
1098 | 1099 | |
1099 | 1100 | |
1100 | 1101 | |
| ||
1160 | 1161 | |
1161 | 1162 | |
1162 | 1163 | |
1163 | | - |
| 1164 | + |
1164 | 1165 | |
1165 | 1166 | |
1166 | 1167 | |
|
Collapse file
+3-4Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
| ||
76 | 75 | |
77 | 76 | |
78 | 77 | |
79 | | - |
| 78 | + |
80 | 79 | |
81 | 80 | |
82 | 81 | |
| ||
110 | 109 | |
111 | 110 | |
112 | 111 | |
113 | | - |
| 112 | + |
114 | 113 | |
115 | 114 | |
116 | 115 | |
| ||
211 | 210 | |
212 | 211 | |
213 | 212 | |
214 | | - |
| 213 | + |
215 | 214 | |
216 | 215 | |
217 | 216 | |
|
Collapse file
lib/internal/crypto/ml_dsa.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/ml_dsa.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
297 | 297 | |
298 | 298 | |
299 | 299 | |
300 | | - |
| 300 | + |
301 | 301 | |
302 | 302 | |
303 | 303 | |
|
Collapse file
lib/internal/crypto/ml_kem.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/ml_kem.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
69 | 69 | |
70 | 70 | |
71 | 71 | |
72 | | - |
73 | | - |
| 72 | + |
| 73 | + |
74 | 74 | |
75 | 75 | |
76 | 76 | |
| ||
230 | 230 | |
231 | 231 | |
232 | 232 | |
233 | | - |
| 233 | + |
234 | 234 | |
235 | 235 | |
236 | 236 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
327 | 327 | |
328 | 328 | |
329 | 329 | |
330 | | - |
| 330 | + |
331 | 331 | |
332 | 332 | |
333 | 333 | |
|
Collapse file
lib/internal/crypto/util.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/util.js+31-2Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
16 | 17 | |
17 | 18 | |
18 | 19 | |
| 20 | + |
19 | 21 | |
20 | 22 | |
21 | 23 | |
| ||
706 | 708 | |
707 | 709 | |
708 | 710 | |
709 | | - |
| 711 | + |
710 | 712 | |
711 | 713 | |
712 | | - |
| 714 | + |
713 | 715 | |
714 | 716 | |
715 | 717 | |
716 | 718 | |
| 719 | + |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
| 741 | + |
| 742 | + |
| 743 | + |
| 744 | + |
717 | 745 | |
718 | 746 | |
719 | 747 | |
| ||
830 | 858 | |
831 | 859 | |
832 | 860 | |
| 861 | + |
833 | 862 | |
834 | 863 | |
835 | 864 | |
|
0 commit comments