Lines Matching refs:priv_key
42 BIGNUM *priv_key = NULL;
61 || !TEST_ptr(priv_key = BN_new()))
105 if (!TEST_true(BN_set_word(priv_key, 1234L))
106 || !TEST_true(DH_set0_key(dh, NULL, priv_key)))
109 /* test the combined getter for pub_key and priv_key */
112 || !TEST_ptr_eq(priv_key2, priv_key))
115 /* test the simple getters for pub_key and priv_key */
215 /* an error occurred before priv_key was assigned to dh */
216 BN_free(priv_key);
563 BIGNUM *priv_key = NULL, *pub_key = NULL;
573 if (!TEST_ptr(priv_key = BN_bin2bn(td->xA, td->xA_len, NULL))
575 || !TEST_true(DH_set0_key(dhA, pub_key, priv_key)))
578 if (!TEST_ptr(priv_key = BN_bin2bn(td->xB, td->xB_len, NULL))
580 || !TEST_true( DH_set0_key(dhB, pub_key, priv_key)))
582 priv_key = pub_key = NULL;
624 BN_free(priv_key);