UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

9 lines (8 loc) 282 B
import { ByteArray } from './array'; export declare const enum AuthLength { Auth = 32, AuthFull = 64, Key = 32 } export declare function auth(msg: ByteArray, key: ByteArray): Uint8Array; export declare const auth_full: (message: ByteArray, key: ByteArray) => ByteArray;