Crypto Lib
    Preparing search index...

    Function encryptChunksInto

    • Encrypt plaintext chunk by chunk with XChaCha20-Poly1305 into output, starting at offset. Each chunk is its tag byte followed by its ciphertext; the last chunk is tagged FINAL.

      Parameters

      • plaintext: Uint8Array
      • key: Uint8Array
      • baseNonce: Uint8Array
      • chunkSize: number
      • output: Uint8Array
      • offset: number
      • chunkNonce: ChunkNonce

      Returns void