Home | History | Annotate | Download | only in hcrypto

Lines Matching refs:DH

1 /*	$NetBSD: dh.h,v 1.2 2017/01/28 21:31:47 christos Exp $	*/
44 #define DH hc_DH
70 typedef struct DH DH;
78 int (*generate_key)(DH *);
79 int (*compute_key)(unsigned char *,const BIGNUM *,DH *);
80 int (*bn_mod_exp)(const DH *, BIGNUM *, const BIGNUM *,
83 int (*init)(DH *);
84 int (*finish)(DH *);
87 int (*generate_params)(DH *, int, int, BN_GENCB *);
90 struct DH {
126 DH * DH_new(void);
127 DH * DH_new_method(ENGINE *);
128 void DH_free(DH *);
129 int DH_up_ref(DH *);
131 int DH_size(const DH *);
137 int DH_set_method(DH *, const DH_METHOD *);
139 int DH_set_ex_data(DH *, int, void *);
140 void * DH_get_ex_data(DH *, int);
142 int DH_generate_parameters_ex(DH *, int, int, BN_GENCB *);
143 int DH_check_pubkey(const DH *, const BIGNUM *, int *);
144 int DH_generate_key(DH *);
145 int DH_compute_key(unsigned char *,const BIGNUM *,DH *);
147 int i2d_DHparams(DH *, unsigned char **);