Lines Matching refs:priv_key
381 BIGNUM *pbn = NULL, *qbn = NULL, *gbn = NULL, *priv_key = NULL; in ossl_b2i_DSA_after_header() local
401 if (!read_lebn(&p, 20, &priv_key)) in ossl_b2i_DSA_after_header()
405 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_b2i_DSA_after_header()
414 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx)) in ossl_b2i_DSA_after_header()
423 if (!DSA_set0_key(dsa, pub_key, priv_key)) in ossl_b2i_DSA_after_header()
425 pub_key = priv_key = NULL; in ossl_b2i_DSA_after_header()
442 BN_free(priv_key); in ossl_b2i_DSA_after_header()
703 const BIGNUM *pub_key = NULL, *priv_key = NULL; in check_bitlen_dsa() local
706 DSA_get0_key(dsa, &pub_key, &priv_key); in check_bitlen_dsa()
716 if (BN_num_bits(priv_key) > 160) in check_bitlen_dsa()
731 const BIGNUM *pub_key = NULL, *priv_key = NULL; in write_dsa() local
734 DSA_get0_key(dsa, &pub_key, &priv_key); in write_dsa()
742 write_lebn(out, priv_key, 20); in write_dsa()