Пример #1
0
	// 2 cases:
	// a. we were calculing a hash and want to abort
	// b. we haven't started yet
	public override void Initialize () 
	{
		State = 0;
		if (hash == null) {
			hash = new CapiHash (CryptoAPI.CALG_MD5);
		}
	}
Пример #2
0
 // 2 cases:
 // a. we were calculing a hash and want to abort
 // b. we haven't started yet
 public override void Initialize()
 {
     State = 0;
     if (hash == null)
     {
         hash = new CapiHash(CryptoAPI.CALG_SHA1);
     }
 }
Пример #3
0
	protected override void Dispose (bool disposing) 
	{
		if (hash != null) {
			hash.Dispose ();
			hash = null;
			// there's no unmanaged resources (so disposing isn't used)
		}
	}
Пример #4
0
 protected override void Dispose(bool disposing)
 {
     if (hash != null)
     {
         hash.Dispose();
         hash = null;
         // there's no unmanaged resources (so disposing isn't used)
     }
 }
Пример #5
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (hash != null)
                {
                    hash.Dispose();
                    hash = null;
                }
            }

            base.Dispose(disposing);
        }
Пример #6
0
 public SHA1CryptoServiceProvider()
 {
     hash = null;
 }
Пример #7
0
 public MD4CryptoServiceProvider()
 {
     hash = null;
 }
Пример #8
0
	public MD5CryptoServiceProvider () 
	{
		hash = null;
	}
Пример #9
0
	public SHA1CryptoServiceProvider ()
	{
		hash = null;
	}