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