private void RekeyForNextBlock() { _currentKeyIndex = _streamPos / Rc4RekeyingInterval; _rc4 = _key.CreateRC4(_currentKeyIndex); _nextRc4BlockStart = (_currentKeyIndex + 1) * Rc4RekeyingInterval; }
private void RekeyForNextBlock() { _currentKeyIndex = _streamPos/Rc4RekeyingInterval; _rc4 = _key.CreateRC4(_currentKeyIndex); _nextRc4BlockStart = (_currentKeyIndex + 1)*Rc4RekeyingInterval; }