Lines Matching defs:priv_key
78 DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key) {
81 if (priv_key != NULL)
82 *priv_key = dh->priv_key;
86 DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) {
87 /* Note that it is valid for priv_key to be NULL */
92 BN_free(dh->priv_key);
94 dh->priv_key = priv_key;
332 const BIGNUM *priv_key = NULL;
334 DH_get0_key(dh, NULL, &priv_key);
335 return (ISC_TF(dh != NULL && priv_key != NULL));
561 const BIGNUM *pub_key = NULL, *priv_key = NULL, *p = NULL, *g = NULL;
573 DH_get0_key(dh, &pub_key, &priv_key);
600 priv.elements[i].length = BN_num_bytes(priv_key);
601 BN_bn2bin(priv_key, bufs[i]);
628 BIGNUM *pub_key = NULL, *priv_key = NULL, *p = NULL, *g = NULL;
664 priv_key = bn;
672 DH_set0_key(dh, pub_key, priv_key);
685 if (priv_key != NULL)
686 BN_free(priv_key);