Lines Matching refs:ciph

148             && ctx->op.ciph.algctx != NULL)  in evp_pkey_ctx_state()
376 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops()
377 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops()
378 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); in evp_pkey_ctx_free_old_ops()
379 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops()
380 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops()
521 if (pctx->op.ciph.cipher != NULL) { in EVP_PKEY_CTX_dup()
522 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup()
523 if (!EVP_ASYM_CIPHER_up_ref(rctx->op.ciph.cipher)) in EVP_PKEY_CTX_dup()
526 if (pctx->op.ciph.algctx != NULL) { in EVP_PKEY_CTX_dup()
527 if (!ossl_assert(pctx->op.ciph.cipher != NULL)) in EVP_PKEY_CTX_dup()
530 if (pctx->op.ciph.cipher->dupctx != NULL) in EVP_PKEY_CTX_dup()
531 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup()
532 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup()
534 if (rctx->op.ciph.algctx == NULL) { in EVP_PKEY_CTX_dup()
535 EVP_ASYM_CIPHER_free(rctx->op.ciph.cipher); in EVP_PKEY_CTX_dup()
536 rctx->op.ciph.cipher = NULL; in EVP_PKEY_CTX_dup()
680 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_set_params()
681 && ctx->op.ciph.cipher->set_ctx_params != NULL) in EVP_PKEY_CTX_set_params()
683 ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_set_params()
724 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_get_params()
725 && ctx->op.ciph.cipher->get_ctx_params != NULL) in EVP_PKEY_CTX_get_params()
727 ctx->op.ciph.cipher->get_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_get_params()
772 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_gettable_params()
773 && ctx->op.ciph.cipher->gettable_ctx_params != NULL) { in EVP_PKEY_CTX_gettable_params()
775 EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher)); in EVP_PKEY_CTX_gettable_params()
776 return ctx->op.ciph.cipher->gettable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_gettable_params()
816 && ctx->op.ciph.cipher != NULL in EVP_PKEY_CTX_settable_params()
817 && ctx->op.ciph.cipher->settable_ctx_params != NULL) { in EVP_PKEY_CTX_settable_params()
819 EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher)); in EVP_PKEY_CTX_settable_params()
820 return ctx->op.ciph.cipher->settable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_settable_params()
1571 if (ctx->op.ciph.cipher != NULL) in EVP_PKEY_CTX_get0_provider()
1572 return EVP_ASYM_CIPHER_get0_provider(ctx->op.ciph.cipher); in EVP_PKEY_CTX_get0_provider()