Deleted Added
full compact
dh.h (59191) dh.h (68651)
1/* crypto/dh/dh.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_DH_H
60#define HEADER_DH_H
61
1/* crypto/dh/dh.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_DH_H
60#define HEADER_DH_H
61
62#ifdef __cplusplus
63extern "C" {
64#endif
65
66#ifdef NO_DH
67#error DH is disabled.
68#endif
69
62#ifdef NO_DH
63#error DH is disabled.
64#endif
65
66#ifndef NO_BIO
67#include <openssl/bio.h>
68#endif
70#include <openssl/bn.h>
71#include <openssl/crypto.h>
72
73#define DH_FLAG_CACHE_MONT_P 0x01
74
69#include <openssl/bn.h>
70#include <openssl/crypto.h>
71
72#define DH_FLAG_CACHE_MONT_P 0x01
73
74#ifdef __cplusplus
75extern "C" {
76#endif
77
75typedef struct dh_st DH;
76
77typedef struct dh_method {
78 const char *name;
79 /* Methods here */
80 int (*generate_key)(DH *dh);
81 int (*compute_key)(unsigned char *key,BIGNUM *pub_key,DH *dh);
82 int (*bn_mod_exp)(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,

--- 81 unchanged lines hidden (view full) ---

164int DH_check(DH *dh,int *codes);
165int DH_generate_key(DH *dh);
166int DH_compute_key(unsigned char *key,BIGNUM *pub_key,DH *dh);
167DH * d2i_DHparams(DH **a,unsigned char **pp, long length);
168int i2d_DHparams(DH *a,unsigned char **pp);
169#ifndef NO_FP_API
170int DHparams_print_fp(FILE *fp, DH *x);
171#endif
78typedef struct dh_st DH;
79
80typedef struct dh_method {
81 const char *name;
82 /* Methods here */
83 int (*generate_key)(DH *dh);
84 int (*compute_key)(unsigned char *key,BIGNUM *pub_key,DH *dh);
85 int (*bn_mod_exp)(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,

--- 81 unchanged lines hidden (view full) ---

167int DH_check(DH *dh,int *codes);
168int DH_generate_key(DH *dh);
169int DH_compute_key(unsigned char *key,BIGNUM *pub_key,DH *dh);
170DH * d2i_DHparams(DH **a,unsigned char **pp, long length);
171int i2d_DHparams(DH *a,unsigned char **pp);
172#ifndef NO_FP_API
173int DHparams_print_fp(FILE *fp, DH *x);
174#endif
172#ifdef HEADER_BIO_H
175#ifndef NO_BIO
173int DHparams_print(BIO *bp, DH *x);
174#else
175int DHparams_print(char *bp, DH *x);
176#endif
177void ERR_load_DH_strings(void );
178
179/* BEGIN ERROR CODES */
180/* The following lines are auto generated by the script mkerr.pl. Any changes

--- 21 unchanged lines hidden ---
176int DHparams_print(BIO *bp, DH *x);
177#else
178int DHparams_print(char *bp, DH *x);
179#endif
180void ERR_load_DH_strings(void );
181
182/* BEGIN ERROR CODES */
183/* The following lines are auto generated by the script mkerr.pl. Any changes

--- 21 unchanged lines hidden ---