gg-crypto-ucryptolib.c
int crypto_verify_setkey(GG_crypt *ggc, void *rsakey, size_t len) {

  /* this implementation only supports pre-initialized keys */
  if (rsakey != NULL)
    return -1;

  /* use the test key ? */
  switch (len) {
    case KEYIDX_TEST:
      ggc->myRSA = (clBignumModulus) precomputed_rsa_test;
      return 0;
    case KEYIDX_ROOT:
      ggc->myRSA = (clBignumModulus) precomputed_rsa_root;
      return 0;
    default:
      return -1;
  }
}
/* Initializes internal pointers
 * rsakey must be NULL and len must be 0 to indicate the root key
 * or 1 to indicate the testing key.
 *
 * Return 0 on success -1 on failure */
Initializes internal pointers
rsakey must be NULL and len must be 0 to indicate the root key
or 1 to indicate the testing key.

Return 0 on success -1 on failure
Initializes internal pointers rsakey must be NULL and len must be 0 to indicate the root key or 1 to indicate the testing key . Return 0 on success - 1 on failure
int crypto_verify_setkey(GG_crypt *ggc, void *rsakey, size_t len) {
  if (rsakey != NULL)
    return -1;
  switch (len) {
    case KEYIDX_TEST:
      ggc->myRSA = (clBignumModulus) precomputed_rsa_test;
      return 0;
    case KEYIDX_ROOT:
      ggc->myRSA = (clBignumModulus) precomputed_rsa_root;
      return 0;
    default:
      return -1;
  }
}
int crypto_verify_setkey ( GG_crypt * ggc , void * rsakey , size_t len ) { if ( rsakey != NULL ) return -1 ; switch ( len ) { case KEYIDX_TEST : ggc -> myRSA = ( clBignumModulus ) precomputed_rsa_test ; return 0 ; case KEYIDX_ROOT : ggc -> myRSA = ( clBignumModulus ) precomputed_rsa_root ; return 0 ; default : return -1 ; } }
Initializes internal pointers
 rsakey must be NULL and len must be 0 to indicate the root key
 or 1 to indicate the testing key.
Initializes internal pointers rsakey must be NULL and len must be 0 to indicate the root key or 1 to indicate the testing key .
/* this implementation only supports pre-initialized keys */ /* use the test key ? */