internal void UpdateSessionKey() { lock (contextLock) { encryptionAlgorithm.UpdateSessionKey(); encryptionCount = 0; decryptionCount = 0; } }