Lines Matching refs:priv_key
108 BIGNUM *pub_key=NULL,*priv_key=NULL;
113 if (dh->priv_key == NULL)
115 priv_key=BN_new();
116 if (priv_key == NULL) goto err;
120 priv_key=dh->priv_key;
142 if (!BN_rand(priv_key, l, 0, 0)) goto err;
153 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
156 prk = priv_key;
162 dh->priv_key=priv_key;
169 if ((priv_key != NULL) && (dh->priv_key == NULL)) BN_free(priv_key);
193 if (dh->priv_key == NULL)
206 BN_set_flags(dh->priv_key, BN_FLG_CONSTTIME);
218 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont))