UNPKG

aead-stream

Version:

Authenticated encryption on arbitrary large files

9 lines (8 loc) 401 B
/** * Stream transformation function that outputs chucks of a defined size. * The last chunk contains the rest of the data and may be smaller than the other chunks * * @param size the size of the chucks (except the last one) * @param stream the input stream of data */ export declare function chunkify(size: number, stream: AsyncIterable<Uint8Array>): AsyncGenerator<Uint8Array, void, unknown>;