Lines Matching refs:cipher
380 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops()
381 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops()
382 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); in evp_pkey_ctx_free_old_ops()
384 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops()
532 if (pctx->op.ciph.cipher != NULL) { in EVP_PKEY_CTX_dup()
533 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup()
534 if (!EVP_ASYM_CIPHER_up_ref(rctx->op.ciph.cipher)) in EVP_PKEY_CTX_dup()
538 if (!ossl_assert(pctx->op.ciph.cipher != NULL)) in EVP_PKEY_CTX_dup()
541 if (pctx->op.ciph.cipher->dupctx != NULL) in EVP_PKEY_CTX_dup()
543 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()
546 EVP_ASYM_CIPHER_free(rctx->op.ciph.cipher); in EVP_PKEY_CTX_dup()
547 rctx->op.ciph.cipher = NULL; in EVP_PKEY_CTX_dup()
695 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_set_params()
696 && ctx->op.ciph.cipher->set_ctx_params != NULL) in EVP_PKEY_CTX_set_params()
698 ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_set_params()
740 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_get_params()
741 && ctx->op.ciph.cipher->get_ctx_params != NULL) in EVP_PKEY_CTX_get_params()
743 ctx->op.ciph.cipher->get_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_get_params()
789 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_gettable_params()
790 && ctx->op.ciph.cipher->gettable_ctx_params != NULL) { in EVP_PKEY_CTX_gettable_params()
792 EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher)); in EVP_PKEY_CTX_gettable_params()
793 return ctx->op.ciph.cipher->gettable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_gettable_params()
833 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_settable_params()
834 && ctx->op.ciph.cipher->settable_ctx_params != NULL) { in EVP_PKEY_CTX_settable_params()
836 EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher)); in EVP_PKEY_CTX_settable_params()
837 return ctx->op.ciph.cipher->settable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_settable_params()
1588 if (ctx->op.ciph.cipher != NULL) in EVP_PKEY_CTX_get0_provider()
1589 return EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher); in EVP_PKEY_CTX_get0_provider()