silc_math_gen_prime
SYNOPSIS
SilcBool silc_math_gen_prime(SilcMPInt *prime, SilcUInt32 bits, SilcBool verbose, SilcRng rng);
DESCRIPTION
Find appropriate prime. It generates a number by taking random bytes. It then tests the number that it's not divisible by any of the small primes and then it performs Fermat's prime test.
If argument verbose is TRUE this will display some status information about the progress of generation. If the `rng' is NULL then global RNG is used, if non-NULL then `rng' is used to generate the random number number.