Lines Matching refs:ctx
36 typedef void adjust_key_fn(void *, struct msblob2key_ctx_st *ctx);
66 struct msblob2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
68 if (ctx != NULL) {
69 ctx->provctx = provctx;
70 ctx->desc = desc;
72 return ctx;
77 struct msblob2key_ctx_st *ctx = vctx;
79 OPENSSL_free(ctx);
86 struct msblob2key_ctx_st *ctx = vctx;
87 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin);
110 ctx->selection = selection;
113 if ((isdss && ctx->desc->type != EVP_PKEY_DSA)
114 || (!isdss && ctx->desc->type != EVP_PKEY_RSA))
136 && ctx->desc->read_private_key != NULL) {
143 key = ctx->desc->read_private_key(&p, bitlen, ispub);
150 && ctx->desc->read_public_key != NULL) {
152 key = ctx->desc->read_public_key(&p, bitlen, ispub);
157 if (key != NULL && ctx->desc->adjust_key != NULL)
158 ctx->desc->adjust_key(key, ctx);
185 (char *)ctx->desc->name, 0);
198 ctx->desc->free_key(key);
208 struct msblob2key_ctx_st *ctx = vctx;
210 ossl_prov_get_keymgmt_export(ctx->desc->fns);
217 return export(keydata, ctx->selection, export_cb, export_cbarg);
234 static void rsa_adjust(void *key, struct msblob2key_ctx_st *ctx)
236 ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));