Lines Matching refs:priv_key
379 BIGNUM *pbn = NULL, *qbn = NULL, *gbn = NULL, *priv_key = NULL;
399 if (!read_lebn(&p, 20, &priv_key))
403 BN_set_flags(priv_key, BN_FLG_CONSTTIME);
412 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx))
421 if (!DSA_set0_key(dsa, pub_key, priv_key))
423 pub_key = priv_key = NULL;
435 BN_free(priv_key);
691 const BIGNUM *pub_key = NULL, *priv_key = NULL;
694 DSA_get0_key(dsa, &pub_key, &priv_key);
704 if (BN_num_bits(priv_key) > 160)
719 const BIGNUM *pub_key = NULL, *priv_key = NULL;
722 DSA_get0_key(dsa, &pub_key, &priv_key);
730 write_lebn(out, priv_key, 20);