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

HashProviderBase

public byte[] Hash { get; }

Gets the value of the computed hash code.

public abstract int HashSize { get; }

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

public abstract int InputBlockSize { get; }

Gets the input block size.

public abstract int OutputBlockSize { get; }

Gets the output block size.

protected HashProviderBase()

public byte[] ComputeHash(byte[] buffer)

Computes the hash value for the input data.

public void Dispose()

Releases all resources used by the current instance of the HashProviderBase class.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the HashProviderBase and optionally releases the managed resources.

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

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

public abstract byte[] HashFinal()

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

public abstract void Initialize()

Initializes an implementation of the HashProviderBase.

public 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.

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

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