DSAManaged.SignData Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9313)
SignData(Byte[], HashAlgorithm)
Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.
Declaration
public byte[] SignData(byte[] buffer, HashAlgorithm halg)
Parameters
| Type | Name | Description |
|---|---|---|
| Byte[] | buffer | The input data for which to compute the hash. |
| Hash |
halg | The hash algorithm to use to create the hash value. |
Returns
| Type | Description |
|---|---|
| Byte[] | The DSA signature for the specified data. |