Lines Matching refs:pub
243 BIGNUM *p = NULL, *q = NULL, *g = NULL, *pub = NULL, *priv = NULL; in dh_computekey_range_test() local
256 || !TEST_ptr(pub = BN_new()) in dh_computekey_range_test()
264 if (!TEST_true(BN_set_word(pub, 1))) in dh_computekey_range_test()
270 if (!TEST_int_le(ossl_dh_compute_key(buf, pub, dh), 0)) in dh_computekey_range_test()
273 if (!TEST_ptr(BN_copy(pub, DH_get0_p(dh))) in dh_computekey_range_test()
274 || !TEST_int_le(ossl_dh_compute_key(buf, pub, dh), 0)) in dh_computekey_range_test()
277 if (!TEST_true(BN_sub_word(pub, 1)) in dh_computekey_range_test()
278 || !TEST_int_le(ossl_dh_compute_key(buf, pub, dh), 0)) in dh_computekey_range_test()
281 if (!TEST_true(BN_sub_word(pub, 1)) in dh_computekey_range_test()
282 || !TEST_int_eq(ossl_dh_compute_key(buf, pub, dh), sz)) in dh_computekey_range_test()
289 BN_free(pub); in dh_computekey_range_test()