diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-29 21:17:41 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-29 21:17:41 +0000 |
commit | 2d45c002c55bc405a4ee38275443080711e9e4a0 (patch) | |
tree | adbf413d3680b20791e35d2e0ce0061eb8390d30 /usr.bin/ssh/dh.h | |
parent | 2a186d5a7cbc4a70cade6f5ed45c41b1ad98fbb4 (diff) |
prepare for rekeying: move DH code to dh.c
Diffstat (limited to 'usr.bin/ssh/dh.h')
-rw-r--r-- | usr.bin/ssh/dh.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/ssh/dh.h b/usr.bin/ssh/dh.h index 70b326e9fa7..13d2fa1620e 100644 --- a/usr.bin/ssh/dh.h +++ b/usr.bin/ssh/dh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.3 2001/03/27 17:46:49 provos Exp $ */ +/* $OpenBSD: dh.h,v 1.4 2001/03/29 21:17:39 markus Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. @@ -32,7 +32,13 @@ struct dhgroup { BIGNUM *p; }; -DH *choose_dh(int min, int nbits, int max); +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); #define DH_GRP_MIN 1024 #define DH_GRP_MAX 8192 |