Function: sealStream()
sealStream(
publicKey,source,options?):AsyncGenerator<Uint8Array<ArrayBufferLike>>
Defined in: stream.ts:210
Encrypts a stream of byte chunks (any sizes) to publicKey. Yields the encrypted stream as an async sequence of byte pieces: the prelude (magic, header), then one frame per chunk. Concatenate the pieces to store or send them. Input of any length, including none, is accepted.
Parameters
publicKey
source
options?
SealStreamOptions = {}
Returns
AsyncGenerator<Uint8Array<ArrayBufferLike>>
Throws
for a key that is not a hybrid KEM key or ML-KEM-1024.