Lines Matching refs:pub_key
44 * DSA has p, q, g, optional pub_key, optional priv_key.
45 * DH has p, optional length, g, optional pub_key,
49 BIGNUM *pub_key = NULL, *priv_key = NULL;
60 if (r->pub_key != NULL) {
61 pub_key = BN_dup(r->pub_key);
62 if (pub_key == NULL)
69 if (!DH_set0_key(ret, pub_key, priv_key))
79 BN_free(pub_key);
234 BN_clear_free(r->pub_key);
295 return d->pub_key;
304 const BIGNUM **pub_key, const BIGNUM **priv_key)
306 if (pub_key != NULL)
307 *pub_key = d->pub_key;
312 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key)
314 if (pub_key != NULL) {
315 BN_free(d->pub_key);
316 d->pub_key = pub_key;