Description
Calculates a digital signature of data using the ECC160 cryptographic algorithm associated with the Feature.
First, the function automatically calculates a hash of the data using the SHA-256 algorithm, and then the resulting hash sum is signed.
Syntax
function GrdFeatureSign( handle: GrdHandle; messageSize: grd_uint32; data: Pointer; digestSize: grd_uint32; digest: Pointer): Integer; stdcall;
Parameters
handle | Session handle |
messageSize | Size (in bytes) of the signed data buffer. Valid value: 20 bytes |
data | Pointer to the buffer of data to be signed |
digestSize | The size (in bytes) of the digital signature buffer. Valid value: 40 bytes |
digest | Pointer to a buffer for digital signature |