mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 10:34:54 +00:00
Thanks to Phil Zimmermann for the code and for the license exception we needed to include it. There remains some build system integration work to be done before this code will build properly in the FreeSWITCH tree.
13 lines
465 B
C
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);
|