Lines Matching defs:priv_key
96 BIGNUM *pub_key=NULL,*priv_key=NULL;
100 if (dsa->priv_key == NULL)
102 if ((priv_key=BN_new()) == NULL) goto err;
105 priv_key=dsa->priv_key;
108 if (!BN_rand_range(priv_key,dsa->q)) goto err;
109 while (BN_is_zero(priv_key));
126 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
129 prk = priv_key;
134 dsa->priv_key=priv_key;
140 if ((priv_key != NULL) && (dsa->priv_key == NULL)) BN_free(priv_key);