Commit def681a
crypto: disable crypto.createCipher in FIPS mode
FIPS 140-2 disallows use of MD5, which is used to derive the
initialization vector and key for createCipher(). Modify
all tests to expect exceptions in FIPS mode when disallowed
API is used, or to avoid testing such API in FIPS Mode.
PR-URL: #3754
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 788541b commit def681aCopy full SHA for def681a
File tree
Expand file treeCollapse file tree
7 files changed
+116
-88
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
7 files changed
+116
-88
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3054 | 3054 | |
3055 | 3055 | |
3056 | 3056 | |
| 3057 | + |
| 3058 | + |
| 3059 | + |
| 3060 | + |
| 3061 | + |
3057 | 3062 | |
3058 | 3063 | |
3059 | 3064 | |
|
Collapse file
test/parallel/test-crypto-authenticated.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-authenticated.js+32-20Lines changed: 32 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
106 | 112 | |
107 | 113 | |
108 | 114 | |
109 | 115 | |
110 | 116 | |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
119 | 121 | |
120 | | - |
121 | | - |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
122 | 134 | |
123 | 135 | |
124 | 136 | |
|
Collapse file
test/parallel/test-crypto-binary-default.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-binary-default.js+6-5Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
496 | 496 | |
497 | 497 | |
498 | 498 | |
| 499 | + |
| 500 | + |
| 501 | + |
499 | 502 | |
500 | | - |
501 | | - |
502 | | - |
503 | | - |
504 | | - |
| 503 | + |
| 504 | + |
| 505 | + |
505 | 506 | |
506 | 507 | |
507 | 508 | |
|
Collapse file
test/parallel/test-crypto-cipher-decipher.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-cipher-decipher.js+4-59Lines changed: 4 additions & 59 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
9 | 13 | |
10 | 14 | |
11 | 15 | |
| ||
62 | 66 | |
63 | 67 | |
64 | 68 | |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | 69 | |
117 | 70 | |
118 | 71 | |
119 | 72 | |
120 | 73 | |
121 | 74 | |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | 75 | |
131 | 76 | |
132 | 77 | |
|
Collapse file
test/parallel/test-crypto-cipheriv-decipheriv.js
Copy file name to clipboard+65Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
Collapse file
test/parallel/test-crypto-dh.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-dh.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
70 | | - |
| 70 | + |
71 | 71 | |
72 | 72 | |
73 | 73 | |
|
Collapse file
test/parallel/test-crypto.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
| 100 | + |
101 | 101 | |
102 | 102 | |
103 | 103 | |
|
0 commit comments