UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

13 lines (12 loc) 483 B
import { ByteArray, WordArray } from './array'; export interface Blake2B { b: ByteArray; h: WordArray; t: number; c: number; outlen: number; } export declare function blake2b(input: ByteArray, key?: ByteArray, outlen?: number): Uint8Array; export declare function blake2b_init(outlen: number, key?: ByteArray): Blake2B; export declare function blake2b_update(ctx: Blake2B, input: ByteArray): void; export declare function blake2b_final(ctx: Blake2B): Uint8Array;