Lines Matching refs:dsa
30 int ossl_dsa_key_fromdata(DSA *dsa, const OSSL_PARAM params[], in ossl_dsa_key_fromdata() argument
36 if (dsa == NULL) in ossl_dsa_key_fromdata()
55 if (!DSA_set0_key(dsa, pub_key, priv_key)) in ossl_dsa_key_fromdata()
66 int ossl_dsa_is_foreign(const DSA *dsa) in ossl_dsa_is_foreign() argument
69 if (dsa->engine != NULL || DSA_get_method((DSA *)dsa) != DSA_OpenSSL()) in ossl_dsa_is_foreign()
82 DSA *ossl_dsa_dup(const DSA *dsa, int selection) in ossl_dsa_dup() argument
87 if (ossl_dsa_is_foreign(dsa)) in ossl_dsa_dup()
90 if ((dupkey = ossl_dsa_new(dsa->libctx)) == NULL) in ossl_dsa_dup()
94 && !ossl_ffc_params_copy(&dupkey->params, &dsa->params)) in ossl_dsa_dup()
97 dupkey->flags = dsa->flags; in ossl_dsa_dup()
101 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key))) in ossl_dsa_dup()
106 || !dsa_bn_dup_check(&dupkey->priv_key, dsa->priv_key))) in ossl_dsa_dup()
111 &dupkey->ex_data, &dsa->ex_data)) in ossl_dsa_dup()
137 DSA *dsa = NULL; in ossl_dsa_key_from_pkcs8() local
151 if ((dsa = d2i_DSAparams(NULL, &pm, pmlen)) == NULL) in ossl_dsa_key_from_pkcs8()
169 dsa_p = DSA_get0_p(dsa); in ossl_dsa_key_from_pkcs8()
170 dsa_g = DSA_get0_g(dsa); in ossl_dsa_key_from_pkcs8()
176 if (!DSA_set0_key(dsa, dsa_pubkey, dsa_privkey)) { in ossl_dsa_key_from_pkcs8()
188 DSA_free(dsa); in ossl_dsa_key_from_pkcs8()
189 dsa = NULL; in ossl_dsa_key_from_pkcs8()
193 return dsa; in ossl_dsa_key_from_pkcs8()