Lines Matching defs:priv_key
252 BIGNUM *pbn = NULL, *qbn = NULL, *gbn = NULL, *priv_key = NULL;
274 if (!read_lebn(&p, 20, &priv_key))
278 BN_set_flags(priv_key, BN_FLG_CONSTTIME);
287 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx))
296 if (!DSA_set0_key(dsa, pub_key, priv_key))
298 pub_key = priv_key = NULL;
313 BN_free(priv_key);
494 const BIGNUM *pub_key = NULL, *priv_key = NULL;
497 DSA_get0_key(dsa, &pub_key, &priv_key);
507 if (BN_num_bits(priv_key) > 160)
584 const BIGNUM *pub_key = NULL, *priv_key = NULL;
587 DSA_get0_key(dsa, &pub_key, &priv_key);
595 write_lebn(out, priv_key, 20);