15b9b2fafSBrian Feldman /* 25b9b2fafSBrian Feldman * Copyright (c) 2000 Niels Provos. All rights reserved. 35b9b2fafSBrian Feldman * 45b9b2fafSBrian Feldman * Redistribution and use in source and binary forms, with or without 55b9b2fafSBrian Feldman * modification, are permitted provided that the following conditions 65b9b2fafSBrian Feldman * are met: 75b9b2fafSBrian Feldman * 1. Redistributions of source code must retain the above copyright 85b9b2fafSBrian Feldman * notice, this list of conditions and the following disclaimer. 95b9b2fafSBrian Feldman * 2. Redistributions in binary form must reproduce the above copyright 105b9b2fafSBrian Feldman * notice, this list of conditions and the following disclaimer in the 115b9b2fafSBrian Feldman * documentation and/or other materials provided with the distribution. 125b9b2fafSBrian Feldman * 135b9b2fafSBrian Feldman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 145b9b2fafSBrian Feldman * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 155b9b2fafSBrian Feldman * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 165b9b2fafSBrian Feldman * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 175b9b2fafSBrian Feldman * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 185b9b2fafSBrian Feldman * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 195b9b2fafSBrian Feldman * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 205b9b2fafSBrian Feldman * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 215b9b2fafSBrian Feldman * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 225b9b2fafSBrian Feldman * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 235b9b2fafSBrian Feldman */ 245b9b2fafSBrian Feldman #ifndef DH_H 255b9b2fafSBrian Feldman #define DH_H 265b9b2fafSBrian Feldman 275b9b2fafSBrian Feldman struct dhgroup { 285b9b2fafSBrian Feldman int size; 295b9b2fafSBrian Feldman BIGNUM *g; 305b9b2fafSBrian Feldman BIGNUM *p; 315b9b2fafSBrian Feldman }; 325b9b2fafSBrian Feldman 335b9b2fafSBrian Feldman DH *choose_dh(int minbits); 345b9b2fafSBrian Feldman 355b9b2fafSBrian Feldman #endif 36