Philip Zimmermann c7e476402a Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH
Thanks to Travis Cross for much of the language here.

Signed-off-by: Philip Zimmermann <prz@mit.edu>
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-03-31 22:56:22 +00:00

13 lines
465 B
C

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