UNPKG

aead-stream

Version:

Authenticated encryption on arbitrary large files

11 lines (10 loc) 356 B
declare const profiles: { "AES-GCM": number; }; export type WebEncryptOptions = { profile?: keyof typeof profiles; chunkSize?: number; associatedData?: Uint8Array; }; export declare function webEncrypt(key: CryptoKey, plaintext: AsyncIterable<Uint8Array>, options?: WebEncryptOptions): AsyncGenerator<Uint8Array, void, unknown>; export {};