summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-05 18:42:52 -0400
committerGitHub <noreply@github.com>2023-03-05 22:42:52 +0000
commit1ab16e2426819af2c534e8a99b98f244626de512 (patch)
treec7decbf152460c3d74f176363fcf708ed428c778 /ext/node/polyfills/internal/crypto
parent5f34c9be91a42e9087536d63b7e319439ceba756 (diff)
refactor(core): InternalModuleLoader checks if all files were used (#18005)
This commit changes "InternalModuleLoader" from "deno_core" to store a list of used modules during snapshotting. If a module was not used during snapshotting "InternalModuleLoader" will panic in its "Drop" handler signaling to the embedder that they made a mistake somewhere.
Diffstat (limited to 'ext/node/polyfills/internal/crypto')
-rw-r--r--ext/node/polyfills/internal/crypto/types.ts46
1 files changed, 0 insertions, 46 deletions
diff --git a/ext/node/polyfills/internal/crypto/types.ts b/ext/node/polyfills/internal/crypto/types.ts
deleted file mode 100644
index 3231d378e..000000000
--- a/ext/node/polyfills/internal/crypto/types.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
-
-import { Buffer } from "internal:deno_node/buffer.ts";
-
-export type HASH_DATA = string | ArrayBufferView | Buffer;
-
-export type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary";
-
-export type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "latin1";
-
-export type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
-
-export type Encoding =
- | BinaryToTextEncoding
- | CharacterEncoding
- | LegacyCharacterEncoding;
-
-export type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
-
-export type BinaryLike = string | ArrayBufferView;
-
-export type KeyFormat = "pem" | "der";
-
-export type KeyType =
- | "rsa"
- | "rsa-pss"
- | "dsa"
- | "ec"
- | "ed25519"
- | "ed448"
- | "x25519"
- | "x448";
-
-export interface PrivateKeyInput {
- key: string | Buffer;
- format?: KeyFormat | undefined;
- type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
- passphrase?: string | Buffer | undefined;
-}
-
-export interface PublicKeyInput {
- key: string | Buffer;
- format?: KeyFormat | undefined;
- type?: "pkcs1" | "spki" | undefined;
-}