diff options
author | Damien Miller <djm@mindrot.org> | 2001-03-30 10:50:10 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-03-30 10:50:10 +1000 |
commit | 9709f906844c86ec4db6fd8dd3ff377069c80573 (patch) | |
tree | 40fe09a5a23f2ad1f1b1546361ac00b0dd678997 /dh.h | |
parent | a0ff466d804969067a684911269c380c664df21d (diff) |
- OpenBSD CVS Sync
- markus@cvs.openbsd.org 2001/03/29 21:17:40
[dh.c dh.h kex.c kex.h]
prepare for rekeying: move DH code to dh.c
Diffstat (limited to 'dh.h')
-rw-r--r-- | dh.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh.h,v 1.3 2001/03/27 17:46:49 provos Exp $ */ | 1 | /* $OpenBSD: dh.h,v 1.4 2001/03/29 21:17:39 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 4 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
@@ -32,7 +32,13 @@ struct dhgroup { | |||
32 | BIGNUM *p; | 32 | BIGNUM *p; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | DH *choose_dh(int min, int nbits, int max); | 35 | DH *choose_dh(int min, int nbits, int max); |
36 | DH *dh_new_group_asc(const char *, const char *); | ||
37 | DH *dh_new_group(BIGNUM *, BIGNUM *); | ||
38 | DH *dh_new_group1(void); | ||
39 | |||
40 | void dh_gen_key(DH *, int); | ||
41 | int dh_pub_is_valid(DH *dh, BIGNUM *dh_pub); | ||
36 | 42 | ||
37 | #define DH_GRP_MIN 1024 | 43 | #define DH_GRP_MIN 1024 |
38 | #define DH_GRP_MAX 8192 | 44 | #define DH_GRP_MAX 8192 |