dsa_priv_key
int dsa_compute_pub_from_priv(dsa_pub_key *pub, const dsa_priv_key *priv)
int dsa_sign(const dsa_priv_key *priv, const u8 *msg, u32 msglen,
dsa_priv_key priv;
int dsa_import_priv_key(dsa_priv_key *priv, const u8 *p, u16 plen,
IGNORE_RET_VAL(local_memset(priv, 0, sizeof(dsa_priv_key)));
ATTRIBUTE_WARN_UNUSED_RET int dsa_import_priv_key(dsa_priv_key *priv, const u8 *p, u16 plen,
const dsa_priv_key *priv);
ATTRIBUTE_WARN_UNUSED_RET int dsa_sign(const dsa_priv_key *priv, const u8 *msg, u32 msglen,
typedef dsa_priv_key gostr34_10_94_priv_key;
typedef dsa_priv_key kcdsa_priv_key;
typedef dsa_priv_key sdsa_priv_key;
const BIGNUM *dsa_priv_key(struct sshkey *k);
ASSERT_BIGNUM_EQ(dsa_priv_key(k1), b);
ASSERT_PTR_NE(dsa_priv_key(kd), NULL);
ASSERT_PTR_EQ(dsa_priv_key(k1), NULL);
const BIGNUM *dsa_priv_key;
DSA_get0_key(key->dsa, NULL, &dsa_priv_key);
if ((r = sshbuf_put_bignum2(b, dsa_priv_key)) != 0)
BIGNUM *dsa_priv_key = NULL;
if ((r = sshbuf_get_bignum2(b, &dsa_priv_key)) != 0)
if (!DSA_set0_key(key->dsa, NULL, dsa_priv_key)) {
BN_clear_free(dsa_priv_key);
BIGNUM *dsa_pub_key = NULL, *dsa_priv_key = NULL;
(dsa_priv_key = BN_new()) == NULL)
buffer_get_bignum_bits(b, dsa_priv_key);
if (!DSA_set0_key(key->dsa, dsa_pub_key, dsa_priv_key))
dsa_pub_key = dsa_priv_key = NULL; /* transferred */