2
0

germain.h 465 B

123456789101112
  1. /*
  2. * Copyright (c) 1995 Colin Plumb. All rights reserved.
  3. * For licensing and other legal details, see the file legal.c.
  4. */
  5. struct BigNum;
  6. /* Generate a Sophie Germain prime */
  7. int germainPrimeGen(struct BigNum *bn, unsigned order,
  8. int (*f)(void *arg, int c), void *arg);
  9. /* The same, but search for using the given step size */
  10. int germainPrimeGenStrong(struct BigNum *bn, struct BigNum const *step,
  11. unsigned order, int (*f)(void *arg, int c), void *arg);