stream method

void stream(
  1. List<int> dst
)

Generates and writes keystream to the destination.

Parameters:

  • dst: The destination where the generated keystream will be written.

Implementation

void stream(List<int> dst) {
  for (var i = 0; i < dst.length; i++) {
    if (_bufpos == _buffer.length) {
      _fillBuffer();
    }
    dst[i] = _buffer[_bufpos++];
  }
}