gg-crypto-ucryptolib.c
int crypto_verify_final(GG_crypt *ggc, GG_ptr *sigret, size_t siglen) {
  int ret;

  assert_ggp_size(sigret, siglen);

  if (siglen != (unsigned int) ggc->myRSA.size)
    return -1;

  ret = clRSA2K_verify(&ggc->myRSA, sigret->ptr, siglen, &ggc->rsaHash);

  if (ret == 1) {
    return 0;
  } else {
    DEBUG(2, "RSA verification failed\n");
    return -1;
  }
}
/*
 * Verify a RSA signature
 *
 * Returns -1 on failure, 0 on success
 */
Verify a RSA signature
Returns -1 on failure, 0 on success
Verify a RSA signature Returns - 1 on failure 0 on success
int crypto_verify_final(GG_crypt *ggc, GG_ptr *sigret, size_t siglen) {
  int ret;
  assert_ggp_size(sigret, siglen);
  if (siglen != (unsigned int) ggc->myRSA.size)
    return -1;
  ret = clRSA2K_verify(&ggc->myRSA, sigret->ptr, siglen, &ggc->rsaHash);
  if (ret == 1) {
    return 0;
  } else {
    DEBUG(2, "RSA verification failed\n");
    return -1;
  }
}
int crypto_verify_final ( GG_crypt * ggc , GG_ptr * sigret , size_t siglen ) { int ret ; assert_ggp_size ( sigret , siglen ) ; if ( siglen != ( unsigned int ) ggc -> myRSA . size ) return -1 ; ret = clRSA2K_verify ( & ggc -> myRSA , sigret -> ptr , siglen , & ggc -> rsaHash ) ; if ( ret == 1 ) { return 0 ; } else { DEBUG ( 2 , " \n " ) ; return -1 ; } }
Verify a RSA signature
 Returns -1 on failure, 0 on success
Verify a RSA signature Returns - 1 on failure 0 on success