Commit bf4e778
committed
crypto: move typechecking for timingSafeEqual into C++
This makes the function more robust against V8 inlining.
Fixes: #34073
PR-URL: #34141
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>1 parent bb54217 commit bf4e778Copy full SHA for bf4e778
File tree
Expand file treeCollapse file tree
6 files changed
+33
-27
lines changedOpen diff view settings
Filter options
- lib
- internal
- crypto
- src
- test/sequential
Expand file treeCollapse file tree
6 files changed
+33
-27
lines changedOpen diff view settings
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
48 | 52 | |
49 | 53 | |
50 | 54 | |
| ||
101 | 105 | |
102 | 106 | |
103 | 107 | |
104 | | - |
105 | 108 | |
106 | 109 | |
107 | 110 | |
|
Collapse file
lib/internal/crypto/util.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/util.js-18Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | 12 | |
14 | 13 | |
15 | 14 | |
| ||
20 | 19 | |
21 | 20 | |
22 | 21 | |
23 | | - |
24 | 22 | |
25 | 23 | |
26 | 24 | |
| ||
76 | 74 | |
77 | 75 | |
78 | 76 | |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | 77 | |
95 | 78 | |
96 | 79 | |
| ||
116 | 99 | |
117 | 100 | |
118 | 101 | |
119 | | - |
120 | 102 | |
121 | 103 | |
Collapse file
-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
800 | 800 | |
801 | 801 | |
802 | 802 | |
803 | | - |
804 | | - |
805 | 803 | |
806 | 804 | |
807 | 805 | |
|
Collapse file
+23-3Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6766 | 6766 | |
6767 | 6767 | |
6768 | 6768 | |
6769 | | - |
6770 | | - |
| 6769 | + |
| 6770 | + |
| 6771 | + |
| 6772 | + |
| 6773 | + |
| 6774 | + |
| 6775 | + |
| 6776 | + |
| 6777 | + |
| 6778 | + |
| 6779 | + |
| 6780 | + |
| 6781 | + |
| 6782 | + |
| 6783 | + |
| 6784 | + |
| 6785 | + |
| 6786 | + |
| 6787 | + |
6771 | 6788 | |
6772 | | - |
| 6789 | + |
| 6790 | + |
| 6791 | + |
| 6792 | + |
6773 | 6793 | |
6774 | 6794 | |
6775 | 6795 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
| 36 | + |
36 | 37 | |
37 | 38 | |
38 | 39 | |
| ||
86 | 87 | |
87 | 88 | |
88 | 89 | |
| 90 | + |
| 91 | + |
89 | 92 | |
90 | 93 | |
91 | 94 | |
|
Collapse file
test/sequential/test-crypto-timing-safe-equal.js
Copy file name to clipboardExpand all lines: test/sequential/test-crypto-timing-safe-equal.js+2-2Lines changed: 2 additions & 2 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 | |
| ||
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | 64 | |
0 commit comments