Lines Matching refs:locpctx
43 EVP_PKEY_CTX *locpctx = NULL; in do_sigver_init() local
67 locpctx = ctx->pctx; in do_sigver_init()
70 if (evp_pkey_ctx_is_legacy(locpctx)) in do_sigver_init()
76 || locpctx->operation != (ver ? EVP_PKEY_OP_VERIFYCTX in do_sigver_init()
78 || (signature = locpctx->op.sig.signature) == NULL in do_sigver_init()
79 || locpctx->op.sig.algctx == NULL)) in do_sigver_init()
83 props = locpctx->propquery; in do_sigver_init()
85 if (locpctx->pkey == NULL) { in do_sigver_init()
92 evp_pkey_ctx_free_old_ops(locpctx); in do_sigver_init()
102 if (!ossl_assert(locpctx->pkey->keymgmt == NULL in do_sigver_init()
103 || locpctx->pkey->keymgmt == locpctx->keymgmt)) { in do_sigver_init()
108 supported_sig = evp_keymgmt_util_query_operation_name(locpctx->keymgmt, in do_sigver_init()
146 signature = EVP_SIGNATURE_fetch(locpctx->libctx, supported_sig, in do_sigver_init()
147 locpctx->propquery); in do_sigver_init()
152 tmp_prov = EVP_KEYMGMT_get0_provider(locpctx->keymgmt); in do_sigver_init()
155 supported_sig, locpctx->propquery); in do_sigver_init()
175 EVP_KEYMGMT_get0_name(locpctx->keymgmt), in do_sigver_init()
176 locpctx->propquery); in do_sigver_init()
178 provkey = evp_pkey_export_to_provider(locpctx->pkey, locpctx->libctx, in do_sigver_init()
179 &tmp_keymgmt, locpctx->propquery); in do_sigver_init()
195 locpctx->op.sig.signature = signature; in do_sigver_init()
196 locpctx->operation = ver ? EVP_PKEY_OP_VERIFYCTX in do_sigver_init()
198 locpctx->op.sig.algctx in do_sigver_init()
200 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init()
207 *pctx = locpctx; in do_sigver_init()
238 ctx->fetched_digest = EVP_MD_fetch(locpctx->libctx, mdname, props); in do_sigver_init()
259 ret = signature->digest_verify_init(locpctx->op.sig.algctx, in do_sigver_init()
266 ret = signature->digest_sign_init(locpctx->op.sig.algctx, in do_sigver_init()
280 evp_pkey_ctx_free_old_ops(locpctx); in do_sigver_init()
281 locpctx->operation = EVP_PKEY_OP_UNDEFINED; in do_sigver_init()
295 type = evp_get_digestbyname_ex(locpctx->libctx, mdname); in do_sigver_init()
358 ret = evp_pkey_ctx_use_cached_data(locpctx); in do_sigver_init()