public new void Dispose() { if (m_algorithm != null) { m_algorithm.Dispose(); } }
public void Dispose() { if (m_key != null) { m_key.Dispose(); } if (m_algorithm != null) { m_algorithm.Dispose(); } }
private void Dispose(bool disposing) { if (disposing) { if (m_key != null) { m_key.Dispose(); } if (m_algorithm != null) { m_algorithm.Dispose(); } if (m_inputBuffer != null) { m_inputBuffer.Dispose(); } } if (m_authInfo.pbAuthData != IntPtr.Zero) { Marshal.FreeCoTaskMem(m_authInfo.pbAuthData); m_authInfo.pbAuthData = IntPtr.Zero; m_authInfo.cbAuthData = 0; } if (m_authInfo.pbMacContext != IntPtr.Zero) { Marshal.FreeCoTaskMem(m_authInfo.pbMacContext); m_authInfo.pbMacContext = IntPtr.Zero; m_authInfo.cbMacContext = 0; } if (m_authInfo.pbNonce != IntPtr.Zero) { Marshal.FreeCoTaskMem(m_authInfo.pbNonce); m_authInfo.pbNonce = IntPtr.Zero; m_authInfo.cbNonce = 0; } if (m_authInfo.pbTag != IntPtr.Zero) { Marshal.FreeCoTaskMem(m_authInfo.pbTag); m_authInfo.pbTag = IntPtr.Zero; m_authInfo.cbTag = 0; } }
protected override void Dispose(bool disposing) { try { if (disposing) { if (m_hash != null) { m_hash.Dispose(); } if (m_algorithm != null) { m_algorithm.Dispose(); } } } finally { base.Dispose(disposing); } }