From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- node_modules/blake3-wasm/dist/browser/hash-fn.d.ts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 node_modules/blake3-wasm/dist/browser/hash-fn.d.ts (limited to 'node_modules/blake3-wasm/dist/browser/hash-fn.d.ts') diff --git a/node_modules/blake3-wasm/dist/browser/hash-fn.d.ts b/node_modules/blake3-wasm/dist/browser/hash-fn.d.ts new file mode 100644 index 0000000..a341ea2 --- /dev/null +++ b/node_modules/blake3-wasm/dist/browser/hash-fn.d.ts @@ -0,0 +1,24 @@ +import { BaseHashInput, IBaseHashOptions } from '../base/hash-fn'; +import { Hash } from './hash'; +/** + * Input used for browser-based hashes. + */ +export declare type HashInput = BaseHashInput | string; +/** + * @hidden + */ +export declare const normalizeInput: (input: import("..").HashInput) => Uint8Array; +/** + * Returns a blake3 hash of the input. + */ +export declare function hash(input: HashInput, { length }?: IBaseHashOptions): Hash; +/** + * Given cryptographic key material and a context string, services a subkey of + * any length. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.derive_key.html} + * for more information. + */ +export declare function deriveKey(context: string, material: HashInput, { length }?: IBaseHashOptions): Hash; +/** + * The keyed hash function. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.keyed_hash.html}. + */ +export declare function keyedHash(key: Uint8Array, input: HashInput, { length }?: IBaseHashOptions): Hash; -- cgit v1.2.3