UNPKG

661 BTypeScriptView Raw
1/// <reference types="node" />
2/**
3 * @name shaAsU8a
4 * @summary Creates a sha Uint8Array from the input.
5 */
6export declare const shaAsU8a: (value: string | Uint8Array | Buffer, bitLength?: 256 | 512 | undefined, onlyJs?: boolean | undefined) => Uint8Array;
7/**
8 * @name sha256AsU8a
9 * @summary Creates a sha256 Uint8Array from the input.
10 */
11export declare const sha256AsU8a: (data: string | Uint8Array | Buffer, onlyJs?: boolean | undefined) => Uint8Array;
12/**
13 * @name sha512AsU8a
14 * @summary Creates a sha512 Uint8Array from the input.
15 */
16export declare const sha512AsU8a: (data: string | Uint8Array | Buffer, onlyJs?: boolean | undefined) => Uint8Array;