10 private SafeHashHandle _safeHashHandle;
13 [SecuritySafeCritical]
16 _safeHashHandle = Utils.CreateHash(Utils.StaticProvHandle, 32772);
19 [SecuritySafeCritical]
20 protected override void Dispose(
bool disposing)
22 if (_safeHashHandle !=
null && !_safeHashHandle.IsClosed)
24 _safeHashHandle.Dispose();
26 base.Dispose(disposing);
30 [SecuritySafeCritical]
33 if (_safeHashHandle !=
null && !_safeHashHandle.IsClosed)
35 _safeHashHandle.Dispose();
37 _safeHashHandle = Utils.CreateHash(Utils.StaticProvHandle, 32772);
40 [SecuritySafeCritical]
41 protected override void HashCore(
byte[] rgb,
int ibStart,
int cbSize)
43 Utils.HashData(_safeHashHandle, rgb, ibStart, cbSize);
46 [SecuritySafeCritical]
49 return Utils.EndHash(_safeHashHandle);
override void HashCore(byte[] rgb, int ibStart, int cbSize)
When overridden in a derived class, routes data written to the object into the hash algorithm for com...
SHA1CryptoServiceProvider()
Initializes a new instance of the T:System.Security.Cryptography.SHA1CryptoServiceProvider class.
override void Dispose(bool disposing)
Releases the unmanaged resources used by the T:System.Security.Cryptography.HashAlgorithm and optiona...
override void Initialize()
Initializes an instance of T:System.Security.Cryptography.SHA1CryptoServiceProvider.
override byte [] HashFinal()
When overridden in a derived class, finalizes the hash computation after the last data is processed b...
Computes the T:System.Security.Cryptography.SHA1 hash for the input data.
Computes the T:System.Security.Cryptography.SHA1 hash value for the input data using the implementati...