blob: faff7229928c9a85bb50da99e877b3f36ee7d67b [file] [log] [blame]
struct BigNum;
/* Generate a prime >= bn. leaving the result in bn. */
int primeGen(struct BigNum *bn, unsigned (*randfunc)(unsigned),
int (*f)(void *arg, int c), void *arg, unsigned exponent, ...);
/*
* Generate a prime of the form bn + k*step. Step must be even and
* bn must be odd.
*/
int primeGenStrong(struct BigNum *bn, struct BigNum const *step,
int (*f)(void *arg, int c), void *arg);