Description

Checks the digital signature of data using the ECC160 cryptographic algorithm.

First, the function automatically calculates the HASH from the data being checked using the SHA-256 algorithm, and then the signature of the resulting HASH sum is checked.

Syntax

int GRD_API GrdVerifyDigest(grd_uint32 publicKeySize, 
							const void* publicKey, 
							grd_uint32 messageSize, 
							const void* message, 
							grd_uint32 digestSize, 
							const void* digest);

Parameters

publicKeySize
The size (in bytes) of the public key. Valid value: 40 bytes
publicKey

Pointer to a buffer with a public key. Each feature has its own public key. It is specified in the Guardant Station interface, "Features" section on the page of a specific feature

messageSize

Size (in bytes) of the buffer with data which signature needs to be verified. Valid value: 20 bytes

message

Pointer to a buffer containing data which signature needs to be verified

digestSize
The size (in bytes) of the digital signature buffer. Valid value: 40 bytes
digest
Pointer to the buffer of the digital signature being verified

Return values

GRD_OK

GRD_INVALID_FEATURE

  • No labels