You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

function GrdVerifyDigest(
  publicKeySize: grd_uint32;
  publicKey: Pointer;
  messageSize: grd_uint32;
  data: Pointer;
  digestSize: grd_uint32;
  digest: Pointer): Integer; stdcall;

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

data
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