X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/03b8f8be75466e67c22ef6ac36e1cc76f997921c..67656ffcb8e1bdacdf86ef1f4b2df44fd4ce238e:/dh.h diff --git a/dh.h b/dh.h index 13d2fa16..a0c97b2f 100644 --- a/dh.h +++ b/dh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.4 2001/03/29 21:17:39 markus Exp $ */ +/* $OpenBSD: dh.h,v 1.7 2001/06/26 17:27:23 markus Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. @@ -32,13 +32,15 @@ struct dhgroup { BIGNUM *p; }; -DH *choose_dh(int min, int nbits, int max); +DH *choose_dh(int, int, int); 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); +void dh_gen_key(DH *, int); +int dh_pub_is_valid(DH *, BIGNUM *); + +int dh_estimate(int); #define DH_GRP_MIN 1024 #define DH_GRP_MAX 8192