dh.h (69587) | dh.h (76259) |
---|---|
1/* $OpenBSD: dh.h,v 1.5 2001/04/03 19:53:29 markus Exp $ */ 2 |
|
1/* 2 * Copyright (c) 2000 Niels Provos. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25#define DH_H 26 27struct dhgroup { 28 int size; 29 BIGNUM *g; 30 BIGNUM *p; 31}; 32 | 3/* 4 * Copyright (c) 2000 Niels Provos. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 27#define DH_H 28 29struct dhgroup { 30 int size; 31 BIGNUM *g; 32 BIGNUM *p; 33}; 34 |
33DH *choose_dh(int minbits); | 35DH *choose_dh(int min, int nbits, int max); 36DH *dh_new_group_asc(const char *, const char *); 37DH *dh_new_group(BIGNUM *, BIGNUM *); 38DH *dh_new_group1(void); |
34 | 39 |
40void dh_gen_key(DH *, int); 41int dh_pub_is_valid(DH *dh, BIGNUM *dh_pub); 42 43int dh_estimate(int bits); 44 45#define DH_GRP_MIN 1024 46#define DH_GRP_MAX 8192 47 |
|
35#endif | 48#endif |