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