Previous: , Up: Prime numbers   [Contents][Index]


13.2 Checking

Function: gcry_error_t gcry_prime_check (gcry_mpi_t p, unsigned int flags)

Check whether the number p is prime. Returns zero in case p is indeed a prime, returns GPG_ERR_NO_PRIME in case p is not a prime and a different error code in case something went horribly wrong.