Lines Matching refs:keymgmt

150             && ctx->op.keymgmt.genctx != NULL)  in evp_pkey_ctx_state()
166 EVP_KEYMGMT *keymgmt = NULL; in int_ctx_new() local
176 keytype = EVP_KEYMGMT_get0_name(pkey->keymgmt); in int_ctx_new()
253 if (pkey != NULL && pkey->keymgmt != NULL) { in int_ctx_new()
254 if (!EVP_KEYMGMT_up_ref(pkey->keymgmt)) in int_ctx_new()
257 keymgmt = pkey->keymgmt; in int_ctx_new()
259 keymgmt = EVP_KEYMGMT_fetch(libctx, keytype, propquery); in int_ctx_new()
261 if (keymgmt == NULL) in int_ctx_new()
272 if (keymgmt != NULL) { in int_ctx_new()
273 int tmp_id = evp_keymgmt_get_legacy_alg(keymgmt); in int_ctx_new()
285 EVP_KEYMGMT_free(keymgmt); in int_ctx_new()
294 if (pmeth == NULL && keymgmt == NULL) { in int_ctx_new()
306 EVP_KEYMGMT_free(keymgmt); in int_ctx_new()
313 EVP_KEYMGMT_free(keymgmt); in int_ctx_new()
319 ret->keymgmt = keymgmt; in int_ctx_new()
382 if (ctx->op.keymgmt.genctx != NULL && ctx->keymgmt != NULL) in evp_pkey_ctx_free_old_ops()
383 evp_keymgmt_gen_cleanup(ctx->keymgmt, ctx->op.keymgmt.genctx); in evp_pkey_ctx_free_old_ops()
398 EVP_KEYMGMT_free(ctx->keymgmt); in EVP_PKEY_CTX_free()
578 EVP_KEYMGMT *tmp_keymgmt = pctx->keymgmt; in EVP_PKEY_CTX_dup()
587 EVP_KEYMGMT_free(rctx->keymgmt); in EVP_PKEY_CTX_dup()
588 rctx->keymgmt = tmp_keymgmt; in EVP_PKEY_CTX_dup()
660 return EVP_KEYMGMT_is_a(ctx->keymgmt, keytype); in EVP_PKEY_CTX_is_a()
686 && ctx->keymgmt != NULL in EVP_PKEY_CTX_set_params()
687 && ctx->keymgmt->gen_set_params != NULL) in EVP_PKEY_CTX_set_params()
689 evp_keymgmt_gen_set_params(ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_set_params()
736 && ctx->keymgmt != NULL in EVP_PKEY_CTX_get_params()
737 && ctx->keymgmt->gen_get_params != NULL) in EVP_PKEY_CTX_get_params()
739 evp_keymgmt_gen_get_params(ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_get_params()
787 && ctx->keymgmt != NULL in EVP_PKEY_CTX_gettable_params()
788 && ctx->keymgmt->gen_gettable_params != NULL) { in EVP_PKEY_CTX_gettable_params()
789 provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(ctx->keymgmt)); in EVP_PKEY_CTX_gettable_params()
790 return ctx->keymgmt->gen_gettable_params(ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_gettable_params()
824 && ctx->keymgmt != NULL in EVP_PKEY_CTX_settable_params()
825 && ctx->keymgmt->gen_settable_params != NULL) { in EVP_PKEY_CTX_settable_params()
826 provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(ctx->keymgmt)); in EVP_PKEY_CTX_settable_params()
827 return ctx->keymgmt->gen_settable_params(ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_settable_params()
1249 return evp_pkey_ctx_set1_octet_string(ctx, ctx->op.keymgmt.genctx == NULL, in EVP_PKEY_CTX_set_mac_key()
1462 if (ctx->keymgmt == NULL) { in evp_pkey_ctx_store_cached_data()
1466 if (!EVP_KEYMGMT_is_a(ctx->keymgmt, in evp_pkey_ctx_store_cached_data()
1574 if (ctx->keymgmt != NULL) in EVP_PKEY_CTX_get0_provider()
1575 return EVP_KEYMGMT_get0_provider(ctx->keymgmt); in EVP_PKEY_CTX_get0_provider()