Lines Matching defs:pctx

82      * pctx should be freed by the user of EVP_MD_CTX
86 EVP_PKEY_CTX_free(ctx->pctx);
87 ctx->pctx = NULL;
109 EVP_PKEY_CTX *pctx = NULL;
112 || (pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq)) == NULL) {
117 if (id != NULL && EVP_PKEY_CTX_set1_id(pctx, id->data, id->length) <= 0)
120 EVP_MD_CTX_set_pkey_ctx(ctx, pctx);
124 EVP_PKEY_CTX_free(pctx);
152 if (ctx->pctx != NULL
153 && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
154 && ctx->pctx->op.sig.algctx != NULL) {
161 if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
163 if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
343 if (ctx->pctx != NULL
344 && (!EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
345 || ctx->pctx->op.sig.signature == NULL)) {
347 r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG,
380 if (ctx->pctx != NULL
381 && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
382 && ctx->pctx->op.sig.algctx != NULL) {
391 if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
393 if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
557 out->pctx = NULL;
575 if (in->pctx != NULL) {
576 out->pctx = EVP_PKEY_CTX_dup(in->pctx);
577 if (out->pctx == NULL) {
613 out->pctx = NULL;
631 if (in->pctx) {
632 out->pctx = EVP_PKEY_CTX_dup(in->pctx);
633 if (!out->pctx) {
698 EVP_PKEY_CTX *pctx = ctx->pctx;
700 /* If we have a pctx then we should try that first */
701 if (pctx != NULL
702 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
703 || pctx->operation == EVP_PKEY_OP_SIGNCTX)
704 && pctx->op.sig.algctx != NULL
705 && pctx->op.sig.signature->set_ctx_md_params != NULL)
706 return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx,
728 EVP_PKEY_CTX *pctx;
734 /* If we have a pctx then we should try that first */
735 pctx = ctx->pctx;
736 if (pctx != NULL
737 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
738 || pctx->operation == EVP_PKEY_OP_SIGNCTX)
739 && pctx->op.sig.algctx != NULL
740 && pctx->op.sig.signature->settable_ctx_md_params != NULL)
741 return pctx->op.sig.signature->settable_ctx_md_params(
742 pctx->op.sig.algctx);
754 EVP_PKEY_CTX *pctx = ctx->pctx;
756 /* If we have a pctx then we should try that first */
757 if (pctx != NULL
758 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
759 || pctx->operation == EVP_PKEY_OP_SIGNCTX)
760 && pctx->op.sig.algctx != NULL
761 && pctx->op.sig.signature->get_ctx_md_params != NULL)
762 return pctx->op.sig.signature->get_ctx_md_params(pctx->op.sig.algctx,
784 EVP_PKEY_CTX *pctx;
790 /* If we have a pctx then we should try that first */
791 pctx = ctx->pctx;
792 if (pctx != NULL
793 && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
794 || pctx->operation == EVP_PKEY_OP_SIGNCTX)
795 && pctx->op.sig.algctx != NULL
796 && pctx->op.sig.signature->gettable_ctx_md_params != NULL)
797 return pctx->op.sig.signature->gettable_ctx_md_params(
798 pctx->op.sig.algctx);