Searched refs:dh_pub (Results 1 – 2 of 2) sorted by relevance
215 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) in dh_pub_is_valid() argument218 int n = BN_num_bits(dh_pub); in dh_pub_is_valid()222 if (dh_pub->neg) { in dh_pub_is_valid()226 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ in dh_pub_is_valid()236 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid()244 if (BN_is_bit_set(dh_pub, i)) in dh_pub_is_valid()
2515 BIGNUM *dh_pub = NULL; local2522 if (eay_v2bn(&dh_pub, pub2) < 0)2548 if ((l = DH_compute_key(v, dh_pub, dh)) == -1)2555 if (dh_pub != NULL)2556 BN_free(dh_pub);