Import OpenSSH-5.1p1.
[dragonfly.git] / crypto / openssh-3.8.1p1 / moduli.h
blob9cd1cd3f86c0ae799c0d81e247dd2aa46aa69a51
1 /* $OpenBSD: moduli.h,v 1.1 2003/07/28 09:49:56 djm Exp $ */
3 #include <sys/types.h>
4 #include <openssl/bn.h>
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!
11 #define LARGE_MINIMUM (8UL) /* megabytes */
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).
17 #define LARGE_MAXIMUM (127UL) /* megabytes */
19 /* Minimum number of primality tests to perform */
20 #define TRIAL_MINIMUM (4)
22 int gen_candidates(FILE *, int, int, BIGNUM *);
23 int prime_test(FILE *, FILE *, u_int32_t, u_int32_t);