Lines Matching defs:dh
57 # include <openssl/dh.h>
126 static int cryptodev_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a,
130 DH *dh);
1370 cryptodev_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a,
1378 cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
1387 return ((meth->compute_key) (key, pub_key, dh));
1390 keylen = BN_num_bits(dh->p);
1395 /* inputs: dh->priv_key pub_key dh->p key */
1396 if (bn2crparam(dh->priv_key, &kop.crk_param[0]))
1400 if (bn2crparam(dh->p, &kop.crk_param[2]))
1411 dhret = (meth->compute_key) (key, pub_key, dh);