<PackageReference Include="SshNet.Security.Cryptography" Version="1.1.0" />

IHashProvider

byte[] Hash { get; }

Gets the value of the computed hash code.

int HashSize { get; }

Gets the size, in bits, of the computed hash code.

int InputBlockSize { get; }

Gets the input block size.

int OutputBlockSize { get; }

Gets the output block size.

byte[] ComputeHash(byte[] buffer)

Computes the hash value for the input data.

void HashCore(byte[] array, int ibStart, int cbSize)

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

byte[] HashFinal()

Finalizes the hash computation after the last data is processed by the cryptographic stream object.

void Reset()

Resets an implementation of the IHashProvider to its initial state.

int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

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

byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)

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