Click or drag to resize

HashAlgorithmTransformBlock Method

Computes the hash value for the specified region of the input byte array and copies the resulting hash value to the specified region of the output byte array.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public int TransformBlock(
	byte[] inputBuffer,
	int inputOffset,
	int inputCount,
	byte[] outputBuffer,
	int outputOffset
)

Parameters

inputBuffer  Byte
The input to compute the hash code for.
inputOffset  Int32
The offset into the input byte array from which to begin using data.
inputCount  Int32
The number of bytes in the input byte array to use as data.
outputBuffer  Byte
A copy of the part of the input array used to compute the hash code.
outputOffset  Int32
The offset into the output byte array from which to begin writing data.

Return Value

Int32
The number of bytes written.

Implements

ICryptoTransformTransformBlock(Byte, Int32, Int32, Byte, Int32)
Exceptions
ExceptionCondition
ArgumentExceptioninputCount uses an invalid value. -or- inputBuffer has an invalid length.
ArgumentNullExceptioninputBuffer is null.
ArgumentOutOfRangeExceptioninputOffset is out of range. This parameter requires a non-negative number.
ObjectDisposedExceptionThe object has already been disposed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also