Lines Matching defs:priv_key
44 const BIGNUM *priv_key, BIGNUM *pub_key)
51 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
53 /* pub_key = g ^ priv_key mod p */
66 BIGNUM *pub_key = NULL, *priv_key = NULL;
71 if (dsa->priv_key == NULL) {
72 if ((priv_key = BN_secure_new()) == NULL)
75 priv_key = dsa->priv_key;
90 MIN_STRENGTH, priv_key))
100 if (!ossl_dsa_generate_public_key(ctx, dsa, priv_key, pub_key))
103 dsa->priv_key = priv_key;
120 BN_clear_free(dsa->priv_key);
122 dsa->priv_key = NULL;
132 if (priv_key != dsa->priv_key)
133 BN_free(priv_key);