public Biff8RC4(int initialOffset, Biff8EncryptionKey key) { if (initialOffset >= Rc4RekeyingInterval) { throw new ArgumentException("InitialOffset (" + initialOffset + ")>" + Rc4RekeyingInterval + " not supported yet"); } _key = key; _streamPos = 0; RekeyForNextBlock(); _streamPos = initialOffset; for (var i = initialOffset; i > 0; i--) _rc4.Output(); _shouldSkipEncryptionOnCurrentRecord = false; }
public Biff8RC4(int initialOffset, Biff8EncryptionKey key) { if (initialOffset >= Rc4RekeyingInterval) { throw new ArgumentException("InitialOffset (" + initialOffset + ")>" + Rc4RekeyingInterval + " not supported yet"); } _key = key; _streamPos = 0; RekeyForNextBlock(); _streamPos = initialOffset; for (var i = initialOffset; i > 0; i--) { _rc4.Output(); } _shouldSkipEncryptionOnCurrentRecord = false; }