Click or drag to resize

FileHashIsValid(Stream, Int32, Byte) Method

Checks if the hash for specified stream has correct value.

Namespace: Limilabs.FTP.Client.Hash
Assembly: Ftp (in Ftp.dll) Version: 2.0.26109.1248
Syntax
public bool IsValid(
	Stream stream,
	int length,
	byte[] expectedHash
)

Parameters

stream  Stream
The stream to compute hash for.
length  Int32
Number of bytes to compute hash for.
expectedHash  Byte
Expected hash.

Return Value

Boolean
True if hashes match, false otherwise.
See Also