Beispiel #1
0
        internal static void Dispose(this System.Security.Cryptography.HashAlgorithm algorithm)
        {
            if (algorithm == null)
            {
                throw new NullReferenceException();
            }

            algorithm.Clear();
        }
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (m_hash != null)
            {
                m_hash.Clear();
                m_hash = null;

                m_hashbuffer       = null;
                m_hashbufferLength = 0;
            }
        }
Beispiel #3
0
 public virtual void Clear()
 {
     _hashAlgorithm.Clear();
 }