UNPKG

blake3-wasm

Version:

BLAKE3 hashing for JavaScript: WebAssembly bindings only

17 lines (16 loc) 757 B
/// <reference types="node" /> import { HashInput, IBaseHashOptions } from '@c4312/blake3-internal'; /** * Returns a blake3 hash of the input. */ export declare function hash(input: HashInput, { length }?: IBaseHashOptions): Buffer; /** * 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: HashInput, material: HashInput, { length }?: IBaseHashOptions): Buffer; /** * The keyed hash function. See {@link https://docs.rs/blake3/0.1.3/blake3/fn.keyed_hash.html}. */ export declare function keyedHash(key: HashInput, input: HashInput, { length }?: IBaseHashOptions): Buffer;