Lines Matching refs:dsa_priv_key
2774 const BIGNUM *dsa_p, *dsa_q, *dsa_g, *dsa_pub_key, *dsa_priv_key;
2810 DSA_get0_key(key->dsa, &dsa_pub_key, &dsa_priv_key);
2815 (r = sshbuf_put_bignum2(b, dsa_priv_key)) != 0)
2823 DSA_get0_key(key->dsa, NULL, &dsa_priv_key);
2825 (r = sshbuf_put_bignum2(b, dsa_priv_key)) != 0)
2929 BIGNUM *dsa_pub_key = NULL, *dsa_priv_key = NULL;
2948 (dsa_priv_key = BN_new()) == NULL) {
2956 (r = sshbuf_get_bignum2(buf, dsa_priv_key)) != 0)
2963 if (!DSA_set0_key(k->dsa, dsa_pub_key, dsa_priv_key)) {
2967 dsa_pub_key = dsa_priv_key = NULL; /* transferred */
2970 if ((dsa_priv_key = BN_new()) == NULL) {
2975 (r = sshbuf_get_bignum2(buf, dsa_priv_key)) != 0)
2977 if (!DSA_set0_key(k->dsa, NULL, dsa_priv_key)) {
2981 dsa_priv_key = NULL; /* transferred */
3206 BN_clear_free(dsa_priv_key);