From 08e5606c3400d3a993c0ce6748901c56fc3db35b Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 5 Jul 2024 10:10:22 +0200 Subject: fix(ext/node): rewrite digest handling (#24392) Previously we had many different code paths all handling digests in different places, all with wildly different digest support. This commit rewrites this to use a single digest handling mechanism for all digest operations. It adds various aliases for digest algorithms, like node does. For example `sha1WithRSAEncryption` is an alias for `sha1`. It also adds support for `md5-sha1` digests in various places. --- tests/integration/node_unit_tests.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/node_unit_tests.rs b/tests/integration/node_unit_tests.rs index d0b6d1fbd..15d2021c1 100644 --- a/tests/integration/node_unit_tests.rs +++ b/tests/integration/node_unit_tests.rs @@ -57,11 +57,14 @@ util::unit_test_factory!( buffer_test, child_process_test, console_test, - crypto_cipher_test = crypto / crypto_cipher_test, crypto_cipher_gcm_test = crypto / crypto_cipher_gcm_test, + crypto_cipher_test = crypto / crypto_cipher_test, crypto_hash_test = crypto / crypto_hash_test, + crypto_hkdf_test = crypto / crypto_hkdf_test, crypto_key_test = crypto / crypto_key_test, crypto_misc_test = crypto / crypto_misc_test, + crypto_pbkdf2_test = crypto / crypto_pbkdf2_test, + crypto_scrypt_test = crypto / crypto_scrypt_test, crypto_sign_test = crypto / crypto_sign_test, events_test, dgram_test, @@ -72,8 +75,6 @@ util::unit_test_factory!( _randomBytes_test = internal / _randomBytes_test, _randomFill_test = internal / _randomFill_test, _randomInt_test = internal / _randomInt_test, - pbkdf2_test = internal / pbkdf2_test, - scrypt_test = internal / scrypt_test, module_test, net_test, os_test, -- cgit v1.2.3