RSAManaged.SignData Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9119)
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. |
HashAlgorithm | halg | The hash algorithm to use to create the hash value. |
Returns
Type | Description |
---|---|
Byte[] | The RSA signature for the specified data. |