diff options
author | Felipe Baltor <fbaltor@gmail.com> | 2023-06-26 23:04:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 11:04:49 +0900 |
commit | 814edcdd570b3fbef2001f7e6434320743a8f834 (patch) | |
tree | db47be5770509341c0a25e1a402b0cf06b1aa58c /ext/node/ops/crypto/digest.rs | |
parent | a8d472f88e79703b1890bfdc87d7a3bb20b21428 (diff) |
test(ext/node): port crypto_test.ts from deno_std (#19561)
Diffstat (limited to 'ext/node/ops/crypto/digest.rs')
-rw-r--r-- | ext/node/ops/crypto/digest.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/node/ops/crypto/digest.rs b/ext/node/ops/crypto/digest.rs index 4fab58a43..685fc32d0 100644 --- a/ext/node/ops/crypto/digest.rs +++ b/ext/node/ops/crypto/digest.rs @@ -99,6 +99,19 @@ impl Hash { Sha512(context) => context.finalize(), } } + + pub fn get_hashes() -> Vec<&'static str> { + vec![ + "md4", + "md5", + "ripemd160", + "sha1", + "sha224", + "sha256", + "sha384", + "sha512", + ] + } } impl Clone for Hash { |