tweetnacl-ts
Version:
Port of TweetNaCl cryptographic library to TypeScript (and ES6)
7 lines (6 loc) • 518 B
TypeScript
import { ByteArray } from './array';
export declare function _salsa20(o: ByteArray, p: ByteArray, k: ByteArray, c: ByteArray): void;
export declare function _hsalsa20(o: ByteArray, p: ByteArray, k: ByteArray, c: ByteArray): void;
export declare const _sigma: ByteArray;
export declare function _stream(c: ByteArray, cpos: number, d: number, n: ByteArray, k: ByteArray): number;
export declare function _stream_xor(c: ByteArray, cpos: number, m: ByteArray, mpos: number, d: number, n: ByteArray, k: ByteArray): number;