Lines Matching refs:exchange
367 if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL) in evp_pkey_ctx_free_old_ops()
368 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx); in evp_pkey_ctx_free_old_ops()
369 EVP_KEYEXCH_free(ctx->op.kex.exchange); in evp_pkey_ctx_free_old_ops()
371 ctx->op.kex.exchange = NULL; in evp_pkey_ctx_free_old_ops()
490 if (pctx->op.kex.exchange != NULL) { in EVP_PKEY_CTX_dup()
491 rctx->op.kex.exchange = pctx->op.kex.exchange; in EVP_PKEY_CTX_dup()
492 if (!EVP_KEYEXCH_up_ref(rctx->op.kex.exchange)) in EVP_PKEY_CTX_dup()
496 if (!ossl_assert(pctx->op.kex.exchange != NULL)) in EVP_PKEY_CTX_dup()
499 if (pctx->op.kex.exchange->dupctx != NULL) in EVP_PKEY_CTX_dup()
501 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup()
504 EVP_KEYEXCH_free(rctx->op.kex.exchange); in EVP_PKEY_CTX_dup()
505 rctx->op.kex.exchange = NULL; in EVP_PKEY_CTX_dup()
683 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_set_params()
684 && ctx->op.kex.exchange->set_ctx_params != NULL) in EVP_PKEY_CTX_set_params()
686 ctx->op.kex.exchange->set_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_set_params()
728 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_get_params()
729 && ctx->op.kex.exchange->get_ctx_params != NULL) in EVP_PKEY_CTX_get_params()
731 ctx->op.kex.exchange->get_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_get_params()
774 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_gettable_params()
775 && ctx->op.kex.exchange->gettable_ctx_params != NULL) { in EVP_PKEY_CTX_gettable_params()
776 provctx = ossl_provider_ctx(EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange)); in EVP_PKEY_CTX_gettable_params()
777 return ctx->op.kex.exchange->gettable_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_gettable_params()
818 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_settable_params()
819 && ctx->op.kex.exchange->settable_ctx_params != NULL) { in EVP_PKEY_CTX_settable_params()
820 provctx = ossl_provider_ctx(EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange)); in EVP_PKEY_CTX_settable_params()
821 return ctx->op.kex.exchange->settable_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_settable_params()
1582 if (ctx->op.kex.exchange != NULL) in EVP_PKEY_CTX_get0_provider()
1583 return EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange); in EVP_PKEY_CTX_get0_provider()