Lines Matching refs:dh
236 dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub) in dh_pub_is_valid() argument
244 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_pub_is_valid()
284 dh_gen_key(DH *dh, int need) in dh_gen_key() argument
289 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_gen_key()
301 if (!DH_set_length(dh, MINIMUM(need * 2, pbits - 1))) in dh_gen_key()
304 if (DH_generate_key(dh) == 0) in dh_gen_key()
306 DH_get0_key(dh, &pub_key, NULL); in dh_gen_key()
307 if (!dh_pub_is_valid(dh, pub_key)) in dh_gen_key()
315 DH *dh; in dh_new_group_asc() local
318 if ((dh = DH_new()) == NULL) in dh_new_group_asc()
323 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in dh_new_group_asc()
325 return dh; in dh_new_group_asc()
327 DH_free(dh); in dh_new_group_asc()
340 DH *dh; in dh_new_group() local
342 if ((dh = DH_new()) == NULL) in dh_new_group()
344 if (!DH_set0_pqg(dh, modulus, NULL, gen)) { in dh_new_group()
345 DH_free(dh); in dh_new_group()
349 return dh; in dh_new_group()