Lines Matching refs:priv_key
49 BIGNUM *pub_key = NULL, *priv_key = NULL; in DSA_dup_DH() local
64 if (r->priv_key != NULL) { in DSA_dup_DH()
65 priv_key = BN_dup(r->priv_key); in DSA_dup_DH()
66 if (priv_key == NULL) in DSA_dup_DH()
69 if (!DH_set0_key(ret, pub_key, priv_key)) in DSA_dup_DH()
71 } else if (r->priv_key != NULL) { in DSA_dup_DH()
80 BN_free(priv_key); in DSA_dup_DH()
235 BN_clear_free(r->priv_key); in DSA_free()
300 return d->priv_key; in DSA_get0_priv_key()
304 const BIGNUM **pub_key, const BIGNUM **priv_key) in DSA_get0_key() argument
308 if (priv_key != NULL) in DSA_get0_key()
309 *priv_key = d->priv_key; in DSA_get0_key()
312 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) in DSA_set0_key() argument
318 if (priv_key != NULL) { in DSA_set0_key()
319 BN_free(d->priv_key); in DSA_set0_key()
320 d->priv_key = priv_key; in DSA_set0_key()