mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
d2edcad66e
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.
17 lines
531 B
C
17 lines
531 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 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);
|