Lines Matching refs:exchange

363         if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL)  in evp_pkey_ctx_free_old_ops()
364 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx); in evp_pkey_ctx_free_old_ops()
365 EVP_KEYEXCH_free(ctx->op.kex.exchange); in evp_pkey_ctx_free_old_ops()
367 ctx->op.kex.exchange = NULL; in evp_pkey_ctx_free_old_ops()
479 if (pctx->op.kex.exchange != NULL) { in EVP_PKEY_CTX_dup()
480 rctx->op.kex.exchange = pctx->op.kex.exchange; in EVP_PKEY_CTX_dup()
481 if (!EVP_KEYEXCH_up_ref(rctx->op.kex.exchange)) in EVP_PKEY_CTX_dup()
485 if (!ossl_assert(pctx->op.kex.exchange != NULL)) in EVP_PKEY_CTX_dup()
488 if (pctx->op.kex.exchange->dupctx != NULL) in EVP_PKEY_CTX_dup()
490 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup()
493 EVP_KEYEXCH_free(rctx->op.kex.exchange); in EVP_PKEY_CTX_dup()
494 rctx->op.kex.exchange = NULL; in EVP_PKEY_CTX_dup()
668 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_set_params()
669 && ctx->op.kex.exchange->set_ctx_params != NULL) in EVP_PKEY_CTX_set_params()
671 ctx->op.kex.exchange->set_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_set_params()
712 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_get_params()
713 && ctx->op.kex.exchange->get_ctx_params != NULL) in EVP_PKEY_CTX_get_params()
715 ctx->op.kex.exchange->get_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_get_params()
757 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_gettable_params()
758 && ctx->op.kex.exchange->gettable_ctx_params != NULL) { in EVP_PKEY_CTX_gettable_params()
759 provctx = ossl_provider_ctx(EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange)); in EVP_PKEY_CTX_gettable_params()
760 return ctx->op.kex.exchange->gettable_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_gettable_params()
801 && ctx->op.kex.exchange != NULL in EVP_PKEY_CTX_settable_params()
802 && ctx->op.kex.exchange->settable_ctx_params != NULL) { in EVP_PKEY_CTX_settable_params()
803 provctx = ossl_provider_ctx(EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange)); in EVP_PKEY_CTX_settable_params()
804 return ctx->op.kex.exchange->settable_ctx_params(ctx->op.kex.algctx, in EVP_PKEY_CTX_settable_params()
1565 if (ctx->op.kex.exchange != NULL) in EVP_PKEY_CTX_get0_provider()
1566 return EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange); in EVP_PKEY_CTX_get0_provider()