home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
crypl200.zip
/
BNLIB
/
PRIME.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-16
|
467b
|
21 lines
struct BigNum;
#ifdef __cplusplus
extern "C" {
#endif
/* Generate a prime >= bn. leaving the result in bn. */
int primeGen(struct BigNum *bn, unsigned (*rand)(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);
#ifdef __cplusplus
}
#endif