Lines Matching refs:pub_key
43 const BIGNUM *priv_key, BIGNUM *pub_key) in ossl_dsa_generate_public_key() argument
53 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) in ossl_dsa_generate_public_key()
101 ret = !BN_cmp(dsa->pub_key, pub_key2); in dsa_keygen_knownanswer_test()
151 BIGNUM *pub_key = NULL, *priv_key = NULL; in dsa_keygen() local
178 if (dsa->pub_key == NULL) { in dsa_keygen()
179 if ((pub_key = BN_new()) == NULL) in dsa_keygen()
182 pub_key = dsa->pub_key; in dsa_keygen()
185 if (!ossl_dsa_generate_public_key(ctx, dsa, priv_key, pub_key)) in dsa_keygen()
189 dsa->pub_key = pub_key; in dsa_keygen()
202 BN_free(dsa->pub_key); in dsa_keygen()
204 dsa->pub_key = NULL; in dsa_keygen()
214 if (pub_key != dsa->pub_key) in dsa_keygen()
215 BN_free(pub_key); in dsa_keygen()