// 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 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); } }
protected override void Dispose (bool disposing) { if (hash != null) { hash.Dispose (); hash = null; // there's no unmanaged resources (so disposing isn't used) } }
protected override void Dispose(bool disposing) { if (hash != null) { hash.Dispose(); hash = null; // there's no unmanaged resources (so disposing isn't used) } }
protected override void Dispose(bool disposing) { if (disposing) { if (hash != null) { hash.Dispose(); hash = null; } } base.Dispose(disposing); }
public SHA1CryptoServiceProvider() { hash = null; }
public MD4CryptoServiceProvider() { hash = null; }
public MD5CryptoServiceProvider () { hash = null; }
public SHA1CryptoServiceProvider () { hash = null; }