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
int GRD_API GrdFeatureSign(GrdHandle handle, grd_uint32 messageSize, const void* message, grd_uint32 digestSize, void* digest);
Parameters
handle | Session handle |
messageSize | Size (in bytes) of the signed data buffer. Valid value: 20 bytes |
message | 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 |