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.
chunkSize
Throw unless
chunkSizeis a positive integer. Zero made encryption loop forever, and NaN or a negative size produced a stream with no chunks, silently dropping the plaintext.