diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-16 13:04:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:04:40 +0000 |
commit | 81c9e0ba25acb6288330b85ba2c558f587d92782 (patch) | |
tree | 3d53f6a17f8a42f20ec20fba3cc98360e32df18b /ext/node/ops/crypto/digest.rs | |
parent | eb8ee95f08186c948e5b83501cedd59d6e3b4ef2 (diff) |
fix(ext/crypto): support md4 digest algorithm (#25656)
Fixes #25646
Diffstat (limited to 'ext/node/ops/crypto/digest.rs')
-rw-r--r-- | ext/node/ops/crypto/digest.rs | 7 |
1 files changed, 7 insertions, 0 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![ + "RSA-MD4", "RSA-MD5", "RSA-RIPEMD160", "RSA-SHA1", @@ -281,6 +286,8 @@ impl Hash { "id-rsassa-pkcs1-v1_5-with-sha3-256", "id-rsassa-pkcs1-v1_5-with-sha3-384", "id-rsassa-pkcs1-v1_5-with-sha3-512", + "md4", + "md4WithRSAEncryption", "md5", "md5-sha1", "md5WithRSAEncryption", |