General-purpose Guardant API functions

General-purpose functions allow implementing service operations related to initialization, setup and deinitialization of Guardant API as well as performing the main operations with dongles:

    •  Search for a dongle meeting specified search criteria
    • Initialize the dongle memory
    • Read data from dongle memory
    • Write data into dongle memory
    • Set read/write locks on dongle memory
    • Encrypt information using dongle hardware algorithms

List of general-purpose Guardant API functions:

Name of functionAccess codeShort description
GrdStartupNoneInitialize Guardant API
GrdStartupExNoneInitialize a Guardant API copy with indicating path to GnClient.ini
GrdCleanupNoneDeinitializes Guardant API
GrdDllMainNoneInitializes network functions to be used in DLL
GrdGetLastErrorNoneRetrieves information on the last error from the secured container
GrdFormatMessageNoneConverts the error code into a text message
GrdGetInfoNoneRetrieves information from the secured container
GrdIsValidHandleNoneChecks validity of the secured container handle
GrdCreateHandleNoneCreates the secured container handle
GrdCloseHandleNoneCloses the secured container handle
GrdSetAccessCodesPublic and Read required, others - on demandPlaces access codes into the secured container
GrdSetWorkModeNoneSets the Guardant API operating mode
GrdSetFindModeNoneSets the dongle search mode
GrdFindPrivate ReadFinds a dongle meeting the search criteria
GrdLoginPrivate ReadLogs in to the dongle
GrdLogoutPrivate ReadLogs out of the dongle
GrdLockPrivate ReadLocks the dongle for the period of performing dongle op-erations requiring monopoly running mode
GrdUnlockPrivate ReadUnlocks the dongle
GrdCheckPrivate ReadChecks for dongle availability
GrdDecGPPrivate Read+ Private WriteDecrements the GP counter
GrdReadPrivate ReadReads data from the dongle memory
GrdWritePrivate WriteWrites data into the dongle memory
GrdSignPrivate ReadCalculate the digital signature of data array
GrdVerifySignNoneCheck the digital signature of data array
GrdSeekNoneMoves the index to the current memory address of the dongle
GrdInitPrivate masterInitializes the dongle memory
GrdProtectPrivate masterSets the read/write hardware locks and records the number of hardware algorithms and protected items
GrdTransformPrivate ReadConverts data using a hardware or software implemented algorithm
GrdTransformExPrivate ReadExtended variant of GrdTransform
GrdCryptPrivate ReadEncrypts/decrypts data using a hardware or software algorithm
GrdCryptExPrivate ReadExtended variant of GrdCrypt
GrdHashPrivate ReadCalculates the hash-function value using a hardware or software algorithm
GrdHashExPrivate ReadExtended variant of GrdHash
GrdCodeInitPrivate ReadInitializes the fast reversible conversion password
GrdEnCodeNoneEncrypts data using fast reversible conversion
GrdDeCodeNoneDecrypts data using fast reversible conversion
GrdCRCNoneCalculates the CRC

 


Guardant API functions for operating with protected items

Use special Guardant API functions to work with protected items:

Name of functionAccess codeShort description
GrdPI_ActivatePrivate Read and password for this operation, if set in the dongleActivates a hardware algorithm/protected item
GrdPI_DeactivateDeactivates a hardware algorithm or protected item
GrdPI_ReadReads data from a protected item
GrdPI_UpdateUpdates data in a protected item
GrdPI_GetCounterReturn algorithm launch counter value

 


Guardant API functions for RTC dongles

Name of functionAccess codeShort description
GrdSetTimePrivate MasterRTC dongle timer setting
GrdGetTimePrivate ReadReceiving the dongle’s timer time
GrdPI_GetTimeLimitPrivate ReadRecieving the remaining algorithm operating time
GrdMakeSystemTimenot needFill out TgrdSystemTime structure fields
GrdSplitSystemTime not need Receive the values of TgrdSystemTime structure fields
GrdTRU_GenerateQuestionTimePrivate ReadGenerating Encrypted Number-Question
GrdTRU_GenerateQuestionTimeExPrivate ReadExtended version of GrdTRU_GenerateQuestionTime
GrdTRU_DecryptQuestionTimePrivate ReadDecrypting and Authenticating Number-Question
GrdTRU_DecryptQuestionTimeExPrivate ReadExtended version of GrdTRU_ DecryptQuestionTime

 


Guardant API functions for Trusted Remote Update

Trusted Remote Update technology can be implemented not only by using the utilities of the Developer’s Kit. If necessary, developers can support this technology directly in their applications using the set of TRU functions:

Name of functionAccess codeShort description
GrdTRU_SetKeyPrivate MasterInitializes the dongle memory and writes a secret TRU key (see GrdInit)
GrdTRU_GenerateQuestionPrivate ReadGenerates a number-question
GrdTRU_GenerateQuestionExPrivate ReadExtended variant of GrdTRU_GenerateQuestion
GrdTRU_DecryptQuestionPrivate ReadDecrypts and checks the validity of the number-question
GrdTRU_DecryptQuestionExPrivate ReadExtended variant of GrdTRU_DecryptQuestion
GrdTRU_SetAnswerPropertiesNoneSets the parameters of the number-question
GrdTRU_EncryptAnswerPrivate ReadGenerates and encrypts a number-answer
GrdTRU_EncryptAnswerExPrivate ReadExtended variant of GrdTRU_EncryptAnswer
GrdTRU_ApplyAnswerPrivate ReadWrites the number-answer into the dongle

 


Guardant drivers API

You can use driver control functions implemented as a DLL in order to install, uninstall or configure Guardant drivers.

Name of functionShort description
GrdDrvInstallInstalls Guardant drivers
GrdDrvUnInstallUninstalls Guardant drivers
GrdDrvIsInstalledChecks for Guardant drivers availability in the system
GrdDrvGetVersionReturns the Guardant drivers’ version installed in the system
GrdDrvSetPortUseStateSets the port operating mode
GrdDrvGetPortUseStateReturns the current port operating mode
GrdDrvSetPrnPortTimeOutSets the timeout value for the LPT port
GrdDrvGetPrnPortTimeOutReturns the current timeout value for the LPT port
GrdDrvSetPortPropertiesSets the LPT port operating parameters
GrdDrvGetPortPropertiesReturns the current LPT port operating parameters
GrdDrvSetPortPropertiesAutoSets the default LPT port operating parameters
GrdDrvGetSystemInfoReturns the system information on the configuration of LPT and USB ports
  • No labels