Lines Matching refs:DH

65 #error DH is disabled.
81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH
89 /* If this flag is set the DH method is FIPS compliant and can be used
109 /* typedef struct dh_st DH; */
116 int (*generate_key)(DH *dh);
117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
122 int (*init)(DH *dh);
123 int (*finish)(DH *dh);
127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
133 * a DH is passed instead of a EVP_PKEY */
144 /* Place holders if we want to do X9.42 DH */
175 #define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
179 #define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x)
180 #define i2d_DHparams_bio(bp,x) ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)
182 DH *DHparams_dup(DH *);
188 int DH_set_method(DH *dh, const DH_METHOD *meth);
189 DH *DH_new_method(ENGINE *engine);
191 DH * DH_new(void);
192 void DH_free(DH *dh);
193 int DH_up_ref(DH *dh);
194 int DH_size(const DH *dh);
197 int DH_set_ex_data(DH *d, int idx, void *arg);
198 void *DH_get_ex_data(DH *d, int idx);
202 DH * DH_generate_parameters(int prime_len,int generator,
207 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
209 int DH_check(const DH *dh,int *codes);
210 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
211 int DH_generate_key(DH *dh);
212 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
213 DH * d2i_DHparams(DH **a,const unsigned char **pp, long length);
214 int i2d_DHparams(const DH *a,unsigned char **pp);
216 int DHparams_print_fp(FILE *fp, const DH *x);
219 int DHparams_print(BIO *bp, const DH *x);
221 int DHparams_print(char *bp, const DH *x);
242 /* Error codes for the DH functions. */