UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

13 lines (12 loc) 482 B
import { ByteArray, WordArray } from './array'; export interface Blake2S { h: WordArray; b: WordArray; c: number; t: number; outlen: number; } export declare function blake2s(input: ByteArray, key?: ByteArray, outlen?: number): Uint8Array; export declare function blake2s_init(outlen: number, key?: ByteArray): Blake2S; export declare function blake2s_update(ctx: Blake2S, input: ByteArray): void; export declare function blake2s_final(ctx: Blake2S): ByteArray;