Skip to content

Commit fabf8e4

Browse files
panvaaduh95
authored andcommitted
test,crypto: fix conditional SHA3-* skip on BoringSSL
PR-URL: #60379 Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 4b85066 commit fabf8e4

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)