MacAlgorithmProvider.CreateHash(IBuffer) Method

Definition

Creates a CryptographicHash object that supports incremental hash operations.

public:
 virtual CryptographicHash ^ CreateHash(IBuffer ^ keyMaterial) = CreateHash;
CryptographicHash CreateHash(IBuffer const& keyMaterial);
public CryptographicHash CreateHash(IBuffer keyMaterial);
function createHash(keyMaterial)
Public Function CreateHash (keyMaterial As IBuffer) As CryptographicHash

Parameters

keyMaterial
IBuffer

Random data used to help generate the hash. You can call the GenerateRandom method to create the random data.

Returns

A CryptographicHash object that supports incremental hash operations.

Remarks

Note that using the same keyMaterial will result in the same hashes being produced by the returned CryptographicHash for the same input. The keyMaterial provided should be known data in order to re-create the hash later.

Applies to

See also