Export (0) Print
Expand All

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 _
)
[C#]
protected abstract void HashCore(
 byte[] array,
 int ibStart,
 int cbSize
);
[C++]
protected: virtual void HashCore(
 unsigned char array __gc[],
 int ibStart,
 int cbSize
) = 0;
[JScript]
protected abstract function HashCore(
   array : Byte[],
 ibStart : int,
 cbSize : int
);

Parameters

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

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft