// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
export {
  instantiate as instantiateWasm,
} from "./lib/deno_std_wasm_crypto.generated.mjs";

/**
 * All cryptographic hash/digest algorithms supported by std/crypto.
 *
 * For algorithms that are supported by WebCrypto, the name here will match the
 * one used by WebCrypto. Otherwise we prefer the formatting used in the
 * algorithm's official specification. All names are uppercase to facilitate
 * case-insensitive comparisons required by the WebCrypto spec.
 */
export const DIGEST_ALGORITHM_NAMES = [
  "BLAKE2B",
  "BLAKE2B-128",
  "BLAKE2B-160",
  "BLAKE2B-224",
  "BLAKE2B-256",
  "BLAKE2B-384",
  "BLAKE2S",
  "BLAKE3",
  "KECCAK-224",
  "KECCAK-256",
  "KECCAK-384",
  "KECCAK-512",
  "SHA-384",
  "SHA3-224",
  "SHA3-256",
  "SHA3-384",
  "SHA3-512",
  "SHAKE128",
  "SHAKE256",
  "TIGER",
  // insecure (length-extendable):
  "RIPEMD-160",
  "SHA-224",
  "SHA-256",
  "SHA-512",
  // insecure (length-extendable and collidable):
  "MD4",
  "MD5",
  "SHA-1",
  // insecure (non-cryptographic)
  "FNV32",
  "FNV32A",
  "FNV64",
  "FNV64A",
] as const;

/** An algorithm name supported by std/crypto. */
export type DigestAlgorithmName = typeof DIGEST_ALGORITHM_NAMES[number];

// denoCacheMetadata={"headers":{"x-robots-tag":"noindex","access-control-expose-headers":"*","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","alt-svc":"h3=\":443\"; ma=86400","cross-origin-resource-policy":"cross-origin","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=%2FvrCdU8cw6F%2BvefjqQwkfg0aYyatoKOl40dOMtACH%2BMxCaggi3hQ%2FNvByhLkfKhmw91hTyg3Fh%2BEYhrm2k%2FJsyKmvxt2dvRclTYXc8FE2M6iz6WQ4hxUGn0%3D\"}]}","vary":"Origin","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","x-content-type-options":"nosniff","content-length":"1264","x-jsr-backend":"modules","date":"Tue, 28 Jul 2026 12:31:15 GMT","etag":"\"9b33f3dbc5585ada16cd5b4c5e4a97f0\"","set-cookie":"__cf_bm=N_wv.bhYo9uabvjpRyrIOz1.0UnOzBkgwG.33T4ugcw-1785241875.201993-1.0.1.1-tvV8.B3R3Z0yH6AM2FbmwASXbDhDUHhPYrtUhsztsXi02gsa8fmLVmbnLF.A.o96h.ACXfmKZbo0p2o0EzcbyUc51QE5MJ2AIO_iWAwJnnQS_1NGeC78lisj5Xp4zY1s; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","content-type":"text/typescript","server":"cloudflare","cache-control":"public, max-age=31536000, immutable","cf-ray":"a223e657fb1b7db6-LAX","access-control-allow-origin":"*"},"url":"https://jsr.io/@std/crypto/0.224.0/_wasm/mod.ts","time":1785241875}