Crypto Lib
    Preparing search index...

    Function createPqEncryptStream

    • Create a TransformStream that encrypts data using hybrid post-quantum STREAM (X25519 + ML-KEM-768).

      Emits the header at once and each chunk as soon as the next byte shows it is not the last, so it holds at most one chunk of plaintext; the output is the same as streamPqEncrypt's.

      Parameters

      Returns TransformStream<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>

      A TransformStream that accepts plaintext Uint8Array chunks and emits ciphertext.