Commit 6262fa4
crypto: refactor pbkdf2() and pbkdf2Sync() methods
Use the scrypt() infrastructure to reimplement pbkdf2() in a simpler
manner.
PR-URL: #20816
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent c9b4592 commit 6262fa4Copy full SHA for 6262fa4
File tree
Expand file treeCollapse file tree
6 files changed
+121
-180
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- crypto
- src
- test/sequential
Expand file treeCollapse file tree
6 files changed
+121
-180
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
739 | 739 | |
740 | 740 | |
741 | 741 | |
| 742 | + |
| 743 | + |
| 744 | + |
| 745 | + |
| 746 | + |
| 747 | + |
742 | 748 | |
743 | 749 | |
744 | 750 | |
|
Collapse file
lib/internal/crypto/pbkdf2.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/pbkdf2.js+41-32Lines changed: 41 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
| 3 | + |
| 4 | + |
| 5 | + |
3 | 6 | |
| 7 | + |
| 8 | + |
4 | 9 | |
5 | 10 | |
6 | | - |
7 | 11 | |
8 | 12 | |
9 | 13 | |
10 | 14 | |
11 | 15 | |
12 | 16 | |
13 | | - |
14 | | - |
15 | | - |
16 | 17 | |
17 | 18 | |
18 | 19 | |
19 | 20 | |
20 | 21 | |
21 | 22 | |
22 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
23 | 27 | |
24 | 28 | |
25 | 29 | |
26 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
27 | 41 | |
28 | 42 | |
29 | 43 | |
30 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
31 | 51 | |
32 | 52 | |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
37 | 59 | |
38 | 60 | |
39 | 61 | |
| ||
42 | 64 | |
43 | 65 | |
44 | 66 | |
45 | | - |
| 67 | + |
| 68 | + |
46 | 69 | |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
| 70 | + |
| 71 | + |
53 | 72 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
69 | 78 | |
70 | 79 | |
71 | 80 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
503 | 503 | |
504 | 504 | |
505 | 505 | |
| 506 | + |
| 507 | + |
506 | 508 | |
507 | 509 | |
508 | 510 | |
|
Collapse file
-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
244 | 244 | |
245 | 245 | |
246 | 246 | |
247 | | - |
248 | 247 | |
249 | 248 | |
250 | 249 | |
| ||
337 | 336 | |
338 | 337 | |
339 | 338 | |
340 | | - |
341 | 339 | |
342 | 340 | |
343 | 341 | |
|
0 commit comments