RSA::HashData Method (Stream^, HashAlgorithmName)

 

When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

protected:
virtual array<unsigned char>^ HashData(
	Stream^ data,
	HashAlgorithmName hashAlgorithm
)

Parameters

data
Type: System.IO::Stream^

The binary stream to hash.

hashAlgorithm
Type: System.Security.Cryptography::HashAlgorithmName

The hash algorithm.

Return Value

Type: array<System::Byte>^

The hashed data.

Exception Condition
NotImplementedException

A derived class must override this method.

.NET Framework
Available since 4.6
Return to top
Show: