summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/dh.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/dh.h')
-rw-r--r--crypto/openssh/dh.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/crypto/openssh/dh.h b/crypto/openssh/dh.h
index 09b11fd..e8b2944 100644
--- a/crypto/openssh/dh.h
+++ b/crypto/openssh/dh.h
@@ -1,3 +1,5 @@
+/* $OpenBSD: dh.h,v 1.5 2001/04/03 19:53:29 markus Exp $ */
+
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
*
@@ -30,6 +32,17 @@ struct dhgroup {
BIGNUM *p;
};
-DH *choose_dh(int minbits);
+DH *choose_dh(int min, int nbits, int max);
+DH *dh_new_group_asc(const char *, const char *);
+DH *dh_new_group(BIGNUM *, BIGNUM *);
+DH *dh_new_group1(void);
+
+void dh_gen_key(DH *, int);
+int dh_pub_is_valid(DH *dh, BIGNUM *dh_pub);
+
+int dh_estimate(int bits);
+
+#define DH_GRP_MIN 1024
+#define DH_GRP_MAX 8192
#endif
OpenPOWER on IntegriCloud