Lines Matching refs:ctx
28 static int gendsa_cb(EVP_PKEY_CTX *ctx);
71 EVP_PKEY_CTX *ctx = NULL;
150 ctx = EVP_PKEY_CTX_new_from_name(app_get0_libctx(), "DSA", app_get0_propq());
151 if (ctx == NULL) {
163 EVP_PKEY_CTX_set_cb(ctx, gendsa_cb);
164 EVP_PKEY_CTX_set_app_data(ctx, bio_err);
170 if (EVP_PKEY_paramgen_init(ctx) <= 0) {
175 if (EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, num) <= 0) {
180 params = app_paramgen(ctx, "DSA");
207 EVP_PKEY_CTX_free(ctx);
208 ctx = EVP_PKEY_CTX_new_from_pkey(app_get0_libctx(), params,
210 if (ctx == NULL) {
215 if (EVP_PKEY_keygen_init(ctx) <= 0) {
220 pkey = app_keygen(ctx, "DSA", numbits, verbose);
234 EVP_PKEY_CTX_free(ctx);
241 static int gendsa_cb(EVP_PKEY_CTX *ctx)
251 b = EVP_PKEY_CTX_get_app_data(ctx);
252 p = EVP_PKEY_CTX_get_keygen_info(ctx, 0);