Share via


RSAKeyVault.HashData Method

Definition

Overloads

HashData(Stream, HashAlgorithmName)

Computes the hash value of a specified binary stream by using a specified hashing algorithm.

HashData(Byte[], Int32, Int32, HashAlgorithmName)

Computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.

HashData(Stream, HashAlgorithmName)

Source:
RSAKeyVault.cs
Source:
RSAKeyVault.cs

Computes the hash value of a specified binary stream by using a specified hashing algorithm.

protected override byte[] HashData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
override this.HashData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
Protected Overrides Function HashData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()

Parameters

data
Stream

The binary stream to hash.

hashAlgorithm
HashAlgorithmName

The algorithm to use in hash the data.

Returns

Byte[]

The hashed data.

Exceptions

The hashAlgorithm is not supported.

Applies to

HashData(Byte[], Int32, Int32, HashAlgorithmName)

Source:
RSAKeyVault.cs
Source:
RSAKeyVault.cs

Computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.

protected override byte[] HashData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
override this.HashData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
Protected Overrides Function HashData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()

Parameters

data
Byte[]

The data to be hashed.

offset
Int32

The index of the first byte in data that is to be hashed.

count
Int32

The number of bytes to hash.

hashAlgorithm
HashAlgorithmName

The algorithm to use in hash the data.

Returns

Byte[]

The hashed data.

Exceptions

The hashAlgorithm is not supported.

Applies to