=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/dh.h,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- src/usr.bin/ssh/dh.h 2001/03/21 19:46:25 1.1.2.3 +++ src/usr.bin/ssh/dh.h 2001/05/07 21:09:29 1.1.2.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.1.2.3 2001/03/21 19:46:25 jason Exp $ */ +/* $OpenBSD: dh.h,v 1.1.2.4 2001/05/07 21:09:29 jason Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. @@ -32,6 +32,17 @@ 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