Darren Tucker | b2f9d41 | 2003-08-02 23:51:38 +1000 | [diff] [blame] | 1 | /* $OpenBSD: moduli.h,v 1.1 2003/07/28 09:49:56 djm Exp $ */ |
| 2 | |
| 3 | #include <sys/types.h> |
| 4 | #include <openssl/bn.h> |
| 5 | |
| 6 | /* |
| 7 | * Using virtual memory can cause thrashing. This should be the largest |
| 8 | * number that is supported without a large amount of disk activity -- |
| 9 | * that would increase the run time from hours to days or weeks! |
| 10 | */ |
| 11 | #define LARGE_MINIMUM (8UL) /* megabytes */ |
| 12 | |
| 13 | /* |
| 14 | * Do not increase this number beyond the unsigned integer bit size. |
| 15 | * Due to a multiple of 4, it must be LESS than 128 (yielding 2**30 bits). |
| 16 | */ |
| 17 | #define LARGE_MAXIMUM (127UL) /* megabytes */ |
| 18 | |
| 19 | /* Minimum number of primality tests to perform */ |
| 20 | #define TRIAL_MINIMUM (4) |
| 21 | |
| 22 | int gen_candidates(FILE *, int, int, BIGNUM *); |
| 23 | int prime_test(FILE *, FILE *, u_int32_t, u_int32_t); |