Lines Matching refs:dh_p
242 const BIGNUM *dh_p; in dh_pub_is_valid() local
244 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_pub_is_valid()
259 if (!BN_sub(tmp, dh_p, BN_value_one()) || in dh_pub_is_valid()
270 debug2("bits set: %d/%d", bits_set, BN_num_bits(dh_p)); in dh_pub_is_valid()
277 bits_set, BN_num_bits(dh_p)); in dh_pub_is_valid()
287 const BIGNUM *dh_p, *pub_key; in dh_gen_key() local
289 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_gen_key()
291 if (need < 0 || dh_p == NULL || in dh_gen_key()
292 (pbits = BN_num_bits(dh_p)) <= 0 || in dh_gen_key()
316 BIGNUM *dh_p = NULL, *dh_g = NULL; in dh_new_group_asc() local
320 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc()
323 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in dh_new_group_asc()
328 BN_clear_free(dh_p); in dh_new_group_asc()