summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/crypto/util.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/util.ts37
1 files changed, 0 insertions, 37 deletions
diff --git a/ext/node/polyfills/internal/crypto/util.ts b/ext/node/polyfills/internal/crypto/util.ts
index 2e269b7fa..18495c349 100644
--- a/ext/node/polyfills/internal/crypto/util.ts
+++ b/ext/node/polyfills/internal/crypto/util.ts
@@ -17,35 +17,6 @@ import {
kKeyObject,
} from "ext:deno_node/internal/crypto/constants.ts";
-// TODO(kt3k): Generate this list from `digestAlgorithms`
-// of std/crypto/_wasm/mod.ts
-const digestAlgorithms = [
- "blake2b256",
- "blake2b384",
- "blake2b",
- "blake2s",
- "blake3",
- "keccak-224",
- "keccak-256",
- "keccak-384",
- "keccak-512",
- "sha384",
- "sha3-224",
- "sha3-256",
- "sha3-384",
- "sha3-512",
- "shake128",
- "shake256",
- "tiger",
- "rmd160",
- "sha224",
- "sha256",
- "sha512",
- "md4",
- "md5",
- "sha1",
-];
-
export type EllipticCurve = {
name: string;
ephemeral: boolean;
@@ -148,13 +119,6 @@ export const validateByteSource = hideStackFrames((val, name) => {
);
});
-/**
- * Returns an array of the names of the supported hash algorithms, such as 'sha1'.
- */
-export function getHashes(): readonly string[] {
- return digestAlgorithms;
-}
-
const curveNames = ellipticCurves.map((x) => x.name);
export function getCurves(): readonly string[] {
return curveNames;
@@ -181,7 +145,6 @@ export { kAesKeyLengths, kHandle, kKeyObject };
export default {
getDefaultEncoding,
- getHashes,
setDefaultEncoding,
getCiphers,
getCurves,