Lines Matching refs:DH
65 #error DH is disabled.
101 int (*generate_key)(DH *dh);
102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
107 int (*init)(DH *dh);
108 int (*finish)(DH *dh);
112 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
160 #define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
164 #define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x)
165 #define i2d_DHparams_bio(bp,x) ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)
167 DH *DHparams_dup(DH *);
173 int DH_set_method(DH *dh, const DH_METHOD *meth);
174 DH *DH_new_method(ENGINE *engine);
176 DH * DH_new(void);
177 void DH_free(DH *dh);
178 int DH_up_ref(DH *dh);
179 int DH_size(const DH *dh);
182 int DH_set_ex_data(DH *d, int idx, void *arg);
183 void *DH_get_ex_data(DH *d, int idx);
187 DH * DH_generate_parameters(int prime_len,int generator,
192 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
194 int DH_check(const DH *dh,int *codes);
195 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
196 int DH_generate_key(DH *dh);
197 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
198 DH * d2i_DHparams(DH **a,const unsigned char **pp, long length);
199 int i2d_DHparams(const DH *a,unsigned char **pp);
201 int DHparams_print_fp(FILE *fp, const DH *x);
204 int DHparams_print(BIO *bp, const DH *x);
206 int DHparams_print(char *bp, const DH *x);