mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test,crypto: fix conditional SHA3-* skip on BoringSSL
PR-URL: https://github.com/nodejs/node/pull/60379 Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
7bc76d9895
commit
790489c5a9
1 file changed
+6
-6
@@ -241,13 +241,13 @@ async function testSaltLength(keyLength, hash, hLen) {
|
||||
['SHA-256', 32],
|
||||
['SHA-384', 48],
|
||||
['SHA-512', 64],
|
||||
['SHA3-256', 32],
|
||||
['SHA3-384', 48],
|
||||
['SHA3-512', 64],
|
||||
...(!process.features.openssl_is_boringssl ? [
|
||||
['SHA3-256', 32],
|
||||
['SHA3-384', 48],
|
||||
['SHA3-512', 64],
|
||||
] : []),
|
||||
]) {
|
||||
if (hash.startsWith('SHA-3') && !process.features.openssl_is_boringssl) {
|
||||
variations.push(testSaltLength(keyLength, hash, hLen));
|
||||
}
|
||||
variations.push(testSaltLength(keyLength, hash, hLen));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user