protected override void Dispose(bool disposing) { if (!_disposed) { try { _baseStream.Dispose(); _reNegotiationTimer.Dispose(); lock (_readLock) { if (_reNegotiateReadBuffer != null) { _reNegotiateReadBuffer.Dispose(); _reNegotiateReadBuffer = null; } } _cryptoEncryptor.Dispose(); _cryptoDecryptor.Dispose(); _encryptionKey.Dispose(); _authHMACEncrypt.Dispose(); _authHMACDecrypt.Dispose(); } finally { base.Dispose(disposing); } _disposed = true; } }
protected override void Dispose(bool disposing) { try { _baseStream.Dispose(); _cryptoEncryptor.Dispose(); _cryptoDecryptor.Dispose(); _encryptionKey.Dispose(); _authHMACEncrypt.Dispose(); _authHMACDecrypt.Dispose(); } finally { base.Dispose(disposing); } }
private void Dispose(bool disposing) { if (!_disposed) { lock (_lock) { _index.Dispose(); _data.Dispose(); for (int i = 0; i < _key.Length; i++) { _key[i] = 255; } _crypto.Dispose(); } _disposed = true; } }