diff options
| -rw-r--r-- | ext/node/ops/crypto/digest.rs | 7 | ||||
| -rw-r--r-- | tests/unit_node/crypto/crypto_sign_test.ts | 28 | ||||
| -rw-r--r-- | tests/unit_node/testdata/crypto_digest_fixtures.json | 21 |
3 files changed, 45 insertions, 11 deletions
diff --git a/ext/node/ops/crypto/digest.rs b/ext/node/ops/crypto/digest.rs index 1bb028155..293e8e063 100644 --- a/ext/node/ops/crypto/digest.rs +++ b/ext/node/ops/crypto/digest.rs @@ -80,6 +80,10 @@ macro_rules! match_fixed_digest_with_eager_block_buffer { type $type = ::sm3::Sm3; $body } + "rsa-md4" | "md4" | "md4withrsaencryption" => { + type $type = ::md4::Md4; + $body + } "md5-sha1" => { type $type = crate::ops::crypto::md5_sha1::Md5Sha1; $body @@ -260,6 +264,7 @@ impl Hash { pub fn get_hashes() -> Vec<&'static str> { vec