Skip to content

Commit

Permalink
Restore removed/renamed exports for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBanks committed Mar 25, 2024
1 parent f1dcc42 commit 226e7e2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions crypto/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@
*
* @module
*/

import {
DIGEST_ALGORITHM_NAMES,
type DigestAlgorithmName,
DIGEST_ALGORITHM_NAMES as wasmDigestAlgorithms,
type DigestAlgorithmName as WasmDigestAlgorithm,
instantiateWasm,
} from "./_wasm/mod.ts";

export { DIGEST_ALGORITHM_NAMES, type DigestAlgorithmName };
export { type WasmDigestAlgorithm, wasmDigestAlgorithms };

/** Digest algorithms supported by WebCrypto. */
const WEB_CRYPTO_DIGEST_ALGORITHM_NAMES = [
Expand Down Expand Up @@ -295,6 +294,12 @@ const stdCrypto: StdCrypto = ((x) => x)({
},
});

/** FNV (Fowler/Noll/Vo) algorithms names. */
export type FNVAlgorithms = "FNV32" | "FNV32A" | "FNV64" | "FNV64A";

/** Extended digest algorithm names. */
export type DigestAlgorithmName = WasmDigestAlgorithm | FNVAlgorithms;

/*
* The largest digest length the current Wasm implementation can support. This
* is the value of `isize::MAX` on 32-bit platforms like Wasm, which is the
Expand Down

0 comments on commit 226e7e2

Please sign in to comment.