Lines Matching defs:priv_key
80 DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key) {
83 if (priv_key != NULL)
84 *priv_key = d->priv_key;
88 DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) {
89 /* Note that it is valid for priv_key to be NULL */
94 BN_free(d->priv_key);
96 d->priv_key = priv_key;
512 const BIGNUM *priv_key = NULL;
514 DSA_get0_key(dsa, NULL, &priv_key);
515 return (ISC_TF(dsa != NULL && priv_key != NULL));
638 const BIGNUM *pub_key = NULL, *priv_key = NULL;
653 DSA_get0_key(dsa, &pub_key, &priv_key);
675 priv.elements[cnt].length = BN_num_bytes(priv_key);
676 BN_bn2bin(priv_key, bufs[cnt]);
696 BIGNUM *pub_key = NULL, *priv_key = NULL;
743 priv_key = bn;
752 DSA_set0_key(dsa, pub_key, priv_key);