Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field rs_LoFlags contains lower byte of flags defining the properties of protected items. The following flags can be set (flag names listed below are used in Guardant API):

Flag nameValueComment
nsafl_ID1 
nsafl_GP_dec2Decrements GP counter on each algorithm call. Once GP counter reaches 0, algorithm is automatically deactivated and returns error code GrdE_InactiveItem in response to further calls
nsafl_GP4Not used for modern dongles
nsafl_ST_III8Flag should be set for modern dongles
nsafl_ActivationSrv16Activation service available
nsafl_DeactivationSrv32Deactivation service available
nsafl_UpdateSrv64Password-protected service for changing data in items rs_K[] available (GrdPI_Update function supported)
nsafl_InactiveFlag128Algorithm/cell is inactive at the moment. Operations GrdTransform, GrdPI_Read, GrdPI_Update not available
Flag name / Algorythm typeAES128,GSII64ECC160SHA256Loadable CodeProtected Item
nsafl_ID+----
nsafl_GP_dec++++-
nsafl_GP-----
nsafl_ST_III++++-
nsafl_ActivationSrv+++++
nsafl_DeactivationSrv+  ++++
nsafl_UpdateSrv+++++
nsafl_InactiveFlag+++++
nsafh_ReadSrv+++++
nsafh_ReadPwd+++++   
nsafh_BirthTime++++-
nsafh_DeadTime++++-
nsafh_LifeTime++++-
nsafh_FlipTime+----

Field rs_algo contains protected item type code.

    1. The following protected item type codes available for Guardant Sign/Time/Net dongles:

      Flag nameValueComment
       0-4Reserved
      rs_algo_GSII645Symmetrical data encryption algorithm. 128 or 256-bit secret key
      rs_algo_HASH646Calculation of 64-bit hash. 128 or 256-bit secret key
      rs_algo_RND647Generation of 64-bit random number
      rs_algo_PI8Protected item
      rs_algo_GSII64_ENCRYPT10 
      rs_algo_GSII64_DECRYPT11 
      rs_algo_ECC16012 
      rs_algo_AES12813 
      rs_algo_SHA25615 
    2. The following protected item type codes available for Guardant Code/Code Time:

      Flag nameValueComment
      rs_algo_PI8Protected item
      rs_algo_ECC16012 
      rs_algo_AES12813 
      rs_algo_LoadableCode14 
      rs_algo_SHA25615 
      rs_algo_AES128Encode16 
      rs_algo_AES128Decode17