Skip to content

Commit 00d3af9

Browse files
committed
crypto: remove Node.js-specific webcrypto extensions
nodejs/node#43310
1 parent f39f7d5 commit 00d3af9

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

patches/node/fix_crypto_tests_to_run_with_bssl.patch

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -971,21 +971,21 @@ diff --git a/test/parallel/test-webcrypto-derivekey.js b/test/parallel/test-webc
971971
index ee48a61f4ac8f5e8e4cec96eb03d75cb1c45f56a..5108bbf7499f29bafffda76f3c5270aae0271b44 100644
972972
--- a/test/parallel/test-webcrypto-derivekey.js
973973
+++ b/test/parallel/test-webcrypto-derivekey.js
974-
@@ -48,6 +48,7 @@ const { internalBinding } = require('internal/test/binding');
974+
@@ -46,6 +46,7 @@ const { webcrypto: { subtle }, KeyObject } = require('crypto');
975975
test('P-521').then(common.mustCall());
976976
}
977977

978978
+/*
979-
// Test HKDF bit derivation
979+
// Test HKDF key derivation
980980
{
981981
async function test(pass, info, salt, hash, expected) {
982-
@@ -84,6 +85,7 @@ const { internalBinding } = require('internal/test/binding');
982+
@@ -82,6 +83,7 @@ const { webcrypto: { subtle }, KeyObject } = require('crypto');
983983

984984
tests.then(common.mustCall());
985985
}
986986
+*/
987987

988-
// Test PBKDF2 bit derivation
988+
// Test PBKDF2 key derivation
989989
{
990990
diff --git a/test/parallel/test-webcrypto-encrypt-decrypt-rsa.js b/test/parallel/test-webcrypto-encrypt-decrypt-rsa.js
991991
index 151eebd36c9765df086a020ba42920b2442b1b77..efe97ff2499cba909ac5500d827364fa389a0469 100644
@@ -1000,26 +1000,6 @@ index 151eebd36c9765df086a020ba42920b2442b1b77..efe97ff2499cba909ac5500d827364fa
10001000
});
10011001
}
10021002

1003-
diff --git a/test/parallel/test-webcrypto-export-import-rsa.js b/test/parallel/test-webcrypto-export-import-rsa.js
1004-
index ab7aa77394ac9989514b7a184900092bd6753996..b0104ac45867a923a8c651e01e8c6975a62f7c61 100644
1005-
--- a/test/parallel/test-webcrypto-export-import-rsa.js
1006-
+++ b/test/parallel/test-webcrypto-export-import-rsa.js
1007-
@@ -481,6 +481,7 @@ const testVectors = [
1008-
await Promise.all(variations);
1009-
})().then(common.mustCall());
1010-
1011-
+/*
1012-
{
1013-
const publicPem = fixtures.readKey('rsa_pss_public_2048.pem', 'ascii');
1014-
const privatePem = fixtures.readKey('rsa_pss_private_2048.pem', 'ascii');
1015-
@@ -522,6 +523,7 @@ const testVectors = [
1016-
assert.strictEqual(jwk.alg, 'PS256');
1017-
})().then(common.mustCall());
1018-
}
1019-
+*/
1020-
1021-
{
1022-
const ecPublic = crypto.createPublicKey(
10231003
diff --git a/test/parallel/test-webcrypto-wrap-unwrap.js b/test/parallel/test-webcrypto-wrap-unwrap.js
10241004
index 1094845c73e14313860ad476fb7baba2a11b5af4..51972b4b34b191ac59145889dbf2da5c0d407dbe 100644
10251005
--- a/test/parallel/test-webcrypto-wrap-unwrap.js

0 commit comments

Comments
 (0)