Lines Matching refs:DH

65 #  error DH is disabled.
83 * new with 0.9.7h; the built-in DH
93 * If this flag is set the DH method is FIPS compliant and can be used in
114 /* typedef struct dh_st DH; */
120 int (*generate_key) (DH *dh);
121 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
123 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a,
126 int (*init) (DH *dh);
127 int (*finish) (DH *dh);
131 int (*generate_params) (DH *dh, int prime_len, int generator,
137 * This first argument is used to pick up errors when a DH is passed
149 /* Place holders if we want to do X9.42 DH */
185 # define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
189 # define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x)
190 # define i2d_DHparams_bio(bp,x) ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)
192 DH *DHparams_dup(DH *);
198 int DH_set_method(DH *dh, const DH_METHOD *meth);
199 DH *DH_new_method(ENGINE *engine);
201 DH *DH_new(void);
202 void DH_free(DH *dh);
203 int DH_up_ref(DH *dh);
204 int DH_size(const DH *dh);
207 int DH_set_ex_data(DH *d, int idx, void *arg);
208 void *DH_get_ex_data(DH *d, int idx);
212 DH *DH_generate_parameters(int prime_len, int generator,
217 int DH_generate_parameters_ex(DH *dh, int prime_len, int generator,
220 int DH_check(const DH *dh, int *codes);
221 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes);
222 int DH_generate_key(DH *dh);
223 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
224 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
225 DH *d2i_DHparams(DH **a, const unsigned char **pp, long length);
226 int i2d_DHparams(const DH *a, unsigned char **pp);
227 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length);
228 int i2d_DHxparams(const DH *a, unsigned char **pp);
230 int DHparams_print_fp(FILE *fp, const DH *x);
233 int DHparams_print(BIO *bp, const DH *x);
235 int DHparams_print(char *bp, const DH *x);
239 DH *DH_get_1024_160(void);
240 DH *DH_get_2048_224(void);
241 DH *DH_get_2048_256(void);
349 /* Error codes for the DH functions. */