mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-15 14:44:38 +00:00
b2f9d4161a
Should have added with this sync: - djm@cvs.openbsd.org 2003/07/28 09:49:56 [ssh-keygen.1 ssh-keygen.c] Support for generating Diffie-Hellman groups (/etc/moduli) from ssh-keygen. Based on code from Phil Karn, William Allen Simpson and Niels Provos. ok markus@, thanks jmc@
24 lines
763 B
C
24 lines
763 B
C
/* $OpenBSD: moduli.h,v 1.1 2003/07/28 09:49:56 djm Exp $ */
|
|
|
|
#include <sys/types.h>
|
|
#include <openssl/bn.h>
|
|
|
|
/*
|
|
* Using virtual memory can cause thrashing. This should be the largest
|
|
* number that is supported without a large amount of disk activity --
|
|
* that would increase the run time from hours to days or weeks!
|
|
*/
|
|
#define LARGE_MINIMUM (8UL) /* megabytes */
|
|
|
|
/*
|
|
* Do not increase this number beyond the unsigned integer bit size.
|
|
* Due to a multiple of 4, it must be LESS than 128 (yielding 2**30 bits).
|
|
*/
|
|
#define LARGE_MAXIMUM (127UL) /* megabytes */
|
|
|
|
/* Minimum number of primality tests to perform */
|
|
#define TRIAL_MINIMUM (4)
|
|
|
|
int gen_candidates(FILE *, int, int, BIGNUM *);
|
|
int prime_test(FILE *, FILE *, u_int32_t, u_int32_t);
|