Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fabf8e4

Browse filesBrowse files
panvaaduh95
authored andcommitted
test,crypto: fix conditional SHA3-* skip on BoringSSL
PR-URL: #60379 Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4b85066 commit fabf8e4
Copy full SHA for fabf8e4

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-webcrypto-sign-verify-rsa.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-webcrypto-sign-verify-rsa.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ async function testSaltLength(keyLength, hash, hLen) {
241241
['SHA-256', 32],
242242
['SHA-384', 48],
243243
['SHA-512', 64],
244-
['SHA3-256', 32],
245-
['SHA3-384', 48],
246-
['SHA3-512', 64],
244+
...(!process.features.openssl_is_boringssl ? [
245+
['SHA3-256', 32],
246+
['SHA3-384', 48],
247+
['SHA3-512', 64],
248+
] : []),
247249
]) {
248-
if (hash.startsWith('SHA-3') && !process.features.openssl_is_boringssl) {
249-
variations.push(testSaltLength(keyLength, hash, hLen));
250-
}
250+
variations.push(testSaltLength(keyLength, hash, hLen));
251251
}
252252
}
253253

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.