summaryrefslogtreecommitdiff
path: root/moduli.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-03-10 00:24:57 +0000
committerColin Watson <cjwatson@debian.org>2005-03-10 00:24:57 +0000
commit5d05471f6657646d1d6500c7c43134462c407ee6 (patch)
treec142ff8a5b1fcb1c671ba8c6f023746191124d39 /moduli.h
parent485bab886137bbf8b7ec8df82bd66dc6e5654371 (diff)
parentebd2ce335af5861020c79fddb1ae35c03bf036cf (diff)
Import OpenSSH 4.0p1.
Diffstat (limited to 'moduli.h')
-rw-r--r--moduli.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/moduli.h b/moduli.h
new file mode 100644
index 000000000..9cd1cd3f8
--- /dev/null
+++ b/moduli.h
@@ -0,0 +1,23 @@
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
22int gen_candidates(FILE *, int, int, BIGNUM *);
23int prime_test(FILE *, FILE *, u_int32_t, u_int32_t);