Mentalis.org Security Library documentation

MD2CryptoServiceProvider.HashCore Method 

Routes data written to the object into the MD2 hash algorithm for computing the hash.

[Visual Basic]
Overrides Protected Sub HashCore( _
   ByVal array As Byte(), _
   ByVal ibStart As Integer, _
   ByVal cbSize As Integer _
)
[C#]
protected override void HashCore(
   byte[] array,
   int ibStart,
   int cbSize
);

Parameters

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

Exceptions

Exception TypeCondition
ObjectDisposedExceptionThe MD2CryptoServiceProvider instance has been disposed.
CryptographicExceptionThe data could not be hashed.

See Also

MD2CryptoServiceProvider Class | MD2CryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace