Skip to content

Commit 15a406d

Browse 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 0f89192 commit 15a406d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines 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)