aead-stream
Version:
Authenticated encryption on arbitrary large files
7 lines (6 loc) • 518 B
TypeScript
export declare function webcrypto(): Promise<Crypto>;
export declare function concat(...arrays: Uint8Array[]): Uint8Array;
export declare function prepend(prefix: Uint8Array, stream: AsyncIterable<Uint8Array>): AsyncGenerator<Uint8Array, void, undefined>;
export declare function shift(length: number, stream: AsyncIterable<Uint8Array>): Promise<[Uint8Array, AsyncIterable<Uint8Array>]>;
export declare function encodeUint32(num: number): Uint8Array;
export declare function decodeUint32(encoded: Uint8Array): number;