returnByte method
Process one byte of data given by inp
and return its encrypted value.
Implementation
@override
int returnByte(int inp) {
if (_keyStreamOffset == 0) {
_generateKeyStream(_keyStream);
if (++_state[8] == 0) {
++_state[9];
}
}
var out = clip8(_keyStream[_keyStreamOffset] ^ inp);
_keyStreamOffset = (_keyStreamOffset + 1) & 63;
return out;
}