Crypto Lib
    Preparing search index...

    Function assertChunkSize

    • Throw unless chunkSize is a positive integer. Zero made encryption loop forever, and NaN or a negative size produced a stream with no chunks, silently dropping the plaintext.

      Parameters

      • chunkSize: number

      Returns void