Click or drag to resize

HashAlgorithmComputeHash(Byte, Int32, Int32) Method

Computes the hash value for the specified region of the specified byte array.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public byte[] ComputeHash(
	byte[] buffer,
	int offset,
	int count
)

Parameters

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

Return Value

Byte
The computed hash code.
Exceptions
ExceptionCondition
ArgumentExceptioncount is an invalid value. -or- buffer length is invalid.
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeExceptionoffset 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