HashCore Method

HashAlgorithm.HashCore Method

When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.

[Visual Basic]
Protected MustOverride Sub HashCore( _
   ByVal array() As Byte, _
   ByVal ibStart As Integer, _
   ByVal cbSize As Integer _
protected abstract void HashCore(
 byte[] array,
 int ibStart,
 int cbSize
protected: virtual void HashCore(
 unsigned char array __gc[],
 int ibStart,
 int cbSize
) = 0;
protected abstract function HashCore(
   array : Byte[],
 ibStart : int,
 cbSize : int


The input for which to compute the hash code.
The offset into the byte array from which to begin using data.
The number of bytes in the byte array to use as data.


This method is not called by application code.

This abstract method performs the hash computation. Every write to the cryptographic stream object passes the data through this method. For each block of data, this method updates the state of the hash object so a correct hash value is returned at the end of the data stream.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HashAlgorithm Class | HashAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services

© 2015 Microsoft