Certificate.SignMessage Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9119)
SignMessage(Byte[])
Computes the signature for the specified message by encrypting it with the private key.
Declaration
public byte[] SignMessage(byte[] message)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | message | The message to be signed. |
Returns
Type | Description |
---|---|
Byte[] | The signature for the specified message. |
Remarks
The private key for a certificate must be available for this method to succeed.
SignMessage(Byte[], SignatureParameters)
Computes the signature for the specified message by encrypting it with the private key.
Declaration
public byte[] SignMessage(byte[] message, SignatureParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | message | The message to be signed. |
SignatureParameters | parameters | Signature parameters. |
Returns
Type | Description |
---|---|
Byte[] | The signature for the specified message. |
Remarks
The private key for a certificate must be available for this method to succeed.