Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.
Namespace:
Rebex.Security.Cryptography
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Function SignData ( _ buffer As Byte(), _ halg As HashAlgorithm _ ) As Byte() |
C# |
---|
public byte[] SignData( byte[] buffer, HashAlgorithm halg ) |
Parameters
- buffer
- Type: array<System..::..Byte>[]()[][]
The input data for which to compute the hash.
- halg
- Type: System.Security.Cryptography..::..HashAlgorithm
The hash algorithm to use to create the hash value.